Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5183. sql:sync does not accept a directory as a target #5242

Merged
merged 1 commit into from Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/site-aliases.md
Expand Up @@ -109,6 +109,10 @@ To convert legacy alias (*.aliases.drushrc.php) to yml, run the

See [examples/Commands/SiteAliasAlterCommands.php](https://www.drush.org/latest/examples/SiteAliasAlterCommands.php/)) for an example.

### Site specifications:

When a site alias name is provided on the command line, a site specification may be used instead. A site specification is a site alias that is not saved on the filesystem but instead is directly e.g. `drush user@server/path/to/drupal#uri core:status`. See [example site specifications](https://github.com/consolidation/site-alias/blob/ef2eb7d37e59b3d837b4556d4d8070cb345b378c/src/SiteSpecParser.php#L24-L31).

### Environment variables

Site aliases may reference environment variables, just like any Drush config
Expand Down
4 changes: 2 additions & 2 deletions src/Commands/sql/SqlSyncCommands.php
Expand Up @@ -20,8 +20,8 @@ class SqlSyncCommands extends DrushCommands implements SiteAliasManagerAwareInte
*
* @command sql:sync
* @aliases sql-sync
* @param $source A site-alias or the name of a subdirectory within /sites whose database you want to copy from.
* @param $target A site-alias or the name of a subdirectory within /sites whose database you want to replace.
* @param $source A site-alias or site specification whose database you want to copy from.
* @param $target A site-alias or site specification whose database you want to replace.
* @optionset_table_selection
* @option no-dump Do not dump the sql database; always use an existing dump file.
* @option no-sync Do not rsync the database dump file from source to target.
Expand Down