Skip to content

sql:sync uses wrong drush script when both sites are local. #5041

@AdamPS

Description

@AdamPS

Sorry this isn't a full bug report as I ran out of time and had to revert to drush 10 to get the sites back working (at which point it all worked again as normal). I would appreciate if someone else could report if it works for them.

  1. sql:sync fails because the output of drush core-status --fields=db-name --format=json is mysteriously doubled when run from the databaseName() function. It was correct when I ran the command manually.
  [Exception]                                          
  Drush command sql:sync failed                        
                                                       
  In ProcessBase.php line 171:                         
                                                       
    Unable to decode output into JSON: Syntax error    
                                                       
    {                                                  
        "db-name": "XXX"       
    }                                                  
    {                                                  
        "db-name": "XXX"       
    }                                                  

  1. sql:sync from the live site on drush 10 to the test site on drush 11 failed because of changes in league/container between the two versions. It might hard to fix, but is a bit inconvenient because that's exactly what you want to do during testing. Perhaps it could at least be documented somehow, or the error message improved??

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions