drush sql-sanitizefor drush 8x
Run sanitization operations on the current database.
drush sql-sanitize
-
Aliases
sql-sanitize has 1 alias/es:
drush sqlsan
-
Options
sql-sanitize accepts 5 option/s:
--db-prefix
--db-prefix : db-prefix
--db-url
--db-url : db-url
--sanitize-email
--sanitize-email : sanitize-email
--sanitize-password
--sanitize-password : sanitize-password
--whitelist-fields
--whitelist-fields : whitelist-fields
-
Examples
Sanitize database without modifying any passwords.
drush sql-sanitize --sanitize-password=no
Sanitizes database but exempts two user fields from modification.
drush sql-sanitize --whitelist-fields=field_biography,field_phone_number
-
Comments
comments powered by Disqus