Last active
June 1, 2022 12:18
-
-
Save daniDLL/89cbe149c5e1db41ab7acccfbd9975c1 to your computer and use it in GitHub Desktop.
anonymize-local-customer-emails
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
UPDATE customer_entity SET email = CONCAT(SUBSTRING(MD5(UUID()), 1, 15) , '@example.com') where entity_id > 0; | |
UPDATE sales_order SET customer_email = CONCAT(SUBSTRING(MD5(UUID()), 1, 15) , '@example.com') where entity_id > 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment