Created
December 1, 2010 20:21
-
-
Save dustincurrie/724146 to your computer and use it in GitHub Desktop.
Sanitize user table in Drupal with Drush
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
#!/bin/bash | |
drush sqlq "UPDATE {users} SET pass = md5('pass') WHERE uid > 1;" | |
drush sqlq "UPDATE {users} SET mail = concat('myaddr+', replace(mail, '@', '_'), '@testdomain.org') WHERE uid <> 0 AND instr(mail, '@testdomain.org') = 0;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment