Skip to content

Instantly share code, notes, and snippets.

@dwaghmare
Forked from c31ck/sql-drupal-rinse.sql
Last active August 29, 2015 14:18
Show Gist options
  • Save dwaghmare/005f683b6d8e7284d6e4 to your computer and use it in GitHub Desktop.
Save dwaghmare/005f683b6d8e7284d6e4 to your computer and use it in GitHub Desktop.
-- Remove all email addresses.
UPDATE users SET mail=CONCAT('user', uid, '@example.com'), init=CONCAT('user', uid, '@example.com') WHERE uid != 0;
UPDATE emf_subscription SET mail=CONCAT('user', uid, '@example.com'), init=CONCAT('user', uid, '@example.com') WHERE uid != 0;
-- Clear production acquia network settings.
UPDATE variable SET value='' WHERE name LIKE 'acquia%';
-- Clear variables.
DELETE FROM cache WHERE cid = 'variables';
-- Clear webform email adresses.
UPDATE webform_emails set email = '[email protected]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment