Sanitize
Component ID
2829772
Component name
Sanitize
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
This module extends the drush sql-sanitize and drush sql-sync --sanitize commands to sanitize additional database tables provided by Drupal core.
It will perform the following:
- Replaces all "string" fields attached to user entity with the same random string, 255 chars long
- Replaces all "string_long" fields attached to user entity with the same random string, 4096 chars long
- Anonymizes "name" and "mail" fields on comments
This module will never sanitize tables provided by contributed modules because that sanitization should be performed by said contributed modules. See hook_drush_sql_sync_sanitize() for implementation information.
Usage
Execute drush sql-sanitize. For more information on the command, execute drush sql-sanitize --help.
