-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add support for drush sqlsan
/ drush sql-sanitize
#46
Comments
We probably won't be able to convince the Drush team to add Backdrop-specific code to their SQL integration, but we can write our own sanitation callback and alter-out the original one. I filed a PR at #47. |
Thanks @quicksketch this is merged into |
@quicksketch Looks like this actually broke
:( I've reverted this commit so that we don't break peoples Drupal 7 functionality while we work to a solt'n on this. ~Geoff |
Ah, well maybe we can add a check in there for the current bootstrap class, just like we do for hook_drush_command_alter():
|
Just pushed a new PR at #63 that adds the recommended fix above. |
@jenlampton with this PR it works on Backdrop, but on D7 if I issue the command it executes, does not report any feedback, but the PWs and emails are not sanitized.
so, it silently fails on D7, but still breaks the |
from @jenlampton in the PR
I think it is a larger problem ... I believe it to be connected to the namespacing issues we were having with #14 (comment) |
For others who need to use this: I have a local branch with this patch applied. My scripts switch to the sqlsan branch before running the sqlsan command and then switch back. |
...to generate a sanitized database :)
I currently get:
PR from @quicksketch at #47PR from @jenlampton at #63
The text was updated successfully, but these errors were encountered: