Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Enhancement A feature or feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants