Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #659: Adding cloudhooks for basic database scrubbing. #697

Merged
merged 2 commits into from
Dec 27, 2016

Conversation

grasmash
Copy link
Contributor

No description provided.

@grasmash grasmash added in progress Enhancement A feature or feature request labels Nov 21, 2016
UPDATE contact_data set mail='*scrubbed*', name='*scrubbed*', message='*scrubbed*';

-- Remove passwords unless users have 'developer role' or are user 1.
-- UPDATE users SET pass='$REPLACE THIS$' WHERE uid IN (SELECT uid FROM users_roles WHERE rid=3) AND uid > 0 AND uid != 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"WHERE rid=3" doesn't seem very portable :)

TRUNCATE cache_entity;
TRUNCATE cache_menu;
TRUNCATE cachetags;
TRUNCATE contact_message;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if these tables don't exist? I'm assuming MySQL fails gracefully...

Ditto for the update commands above.

@grasmash grasmash merged commit eaa8872 into acquia:8.x Dec 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A feature or feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants