Created
May 7, 2012 15:53
-
-
Save greggles/2628603 to your computer and use it in GitHub Desktop.
example drush sanitize hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function paranoia_drush_sql_sync_sanitize($source) { | |
drush_sql_register_post_sync_op('webform_delete_webform_submissions', | |
dt('Delete all webform_submission primary entries'), | |
"delete from webform_submissions;"); | |
drush_sql_register_post_sync_op('webform_delete_webform_submitted_data', | |
dt('Delete all webform_submitted_data field level entries'), | |
"delete from webform_submitted_data;"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment