pantheon-systems / quicksilver-examples

Example scripts for using Pantheon's Quicksilver Platform Hooks
https://docs.pantheon.io/guides/quicksilver
MIT License
128 stars 118 forks source link

Add Drupal 8 sanitization example #56

Open ptmkenny opened 8 years ago

ptmkenny commented 8 years ago

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.

greg-1-anderson commented 8 years ago

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.

ptmkenny commented 8 years ago

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 notifications@github.com 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 .