quicksilver-examples icon indicating copy to clipboard operation
quicksilver-examples copied to clipboard

Add Drupal 8 sanitization example

Open ptmkenny opened this issue 9 years ago • 2 comments

quicksilver-examples/db_sanitization/db_sanitization_drupal.php is named "Drupal" but it won't work for Drupal 8 because the password and such is in users_field_data, not users.

Please add an example of sanitizing a D8 database and mark the other Drupal script as being for D7.

ptmkenny avatar Feb 18 '16 06:02 ptmkenny

Maybe using drush sql-sanitize would be the better solution here. That wasn't supported when this example was first created, but it should work now.

greg-1-anderson avatar Feb 18 '16 17:02 greg-1-anderson

I actually tried drush sql-sanitize in Terminus, which resolved with no errors, but nothing was actually sanitized (email and passwords unchanged, sessions table not truncated).

This is the command I used:

terminus drush “sql-sanitize -y” --site=mysite --env=mymultidevbranch

terminus 0.10.2

Even if recommending sql-sanitize, it would be nice to have an example like the one for D7 because many sites need to sanitize additional fields beyond what drush offers out of the box.

On Fri, Feb 19, 2016 at 2:08 AM, Greg Anderson [email protected] wrote:

Maybe using drush sql-sanitize would be the better solution here. That wasn't supported when this example was first created, but it should work now.

— Reply to this email directly or view it on GitHub https://github.com/pantheon-systems/quicksilver-examples/issues/56#issuecomment-185818093 .

ptmkenny avatar Feb 18 '16 17:02 ptmkenny