Skip to content

Instantly share code, notes, and snippets.

@c31ck
Last active December 18, 2015 10:59
Show Gist options
  • Save c31ck/5772775 to your computer and use it in GitHub Desktop.
Save c31ck/5772775 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 = 'example@example.com'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment