Problem/Motivation

I would like to use drush sql:sanitize to remove telephone numbers for PII requirements.

Proposed resolution

Use a patch heavily borrowed from AndyF's address sanitization patch in https://www.drupal.org/project/address/issues/3189074.

The approach here finds all telephone fields in all tables in the database and replaces the data with a string of ten zeros.

CommentFileSizeAuthor
#3 telephone-3205630-2.patch9.09 KBeheller

Comments

eheller created an issue. See original summary.

cilefen’s picture

@eheller Is this feature request for a modification to Drush?

eheller’s picture

Status: Active » Needs review
StatusFileSize
new9.09 KB
cilefen’s picture

There are as of today no 'drush.command' tagged services in Drupal core and the Drush sanitization plugins are implemented in Drush. This may be more likely to be committed as part of Drush itself.

eheller’s picture

Oh okay, thanks for the tip. I'll move it over there, then.

cilefen’s picture

Status: Needs review » Closed (duplicate)