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

sql-drop argument '--result-file' not working #2581

Closed
Luxian opened this issue Jan 31, 2017 · 0 comments
Closed

sql-drop argument '--result-file' not working #2581

Luxian opened this issue Jan 31, 2017 · 0 comments

Comments

@Luxian
Copy link

Luxian commented Jan 31, 2017

The documentation is quite confusing, drush help sql-drop describes the argument as:

--result-file=</path/to/file> Save to a file. The file should be relative to Drupal root. Recommended.

To my understanding if you use that argument, a dump of the database will be saved before running drop on all tables. Saving afterwards seems useless.

But running drush @alias sql-drop --result-file=backup.sql will not generate any file (v8.1.9).

In the code the--result-file doesn't appear to be used:

I'm not sure what's the right approach here. Should that argument work? Or it was documented by mistake?

PS: I would like to use this as a default options for some aliases (like @prod) as a mitigation for something I cannot accomplish with policy.drush.php (issue #1708452).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant