Skip to content

Commit

Permalink
adding student_passwordhistory
Browse files Browse the repository at this point in the history
  • Loading branch information
jarv committed Apr 29, 2014
1 parent 0f11d60 commit 2a7669b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions util/vpc-tools/sanitize-db.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
SET FOREIGN_KEY_CHECKS=0;

/*
Remove all password hashes, even for edx employees
*/

UPDATE wwc.auth_user
set
password = null;

UPDATE wwc.student_passwordhistory
set
password = null;

/*
Rewrite all emails to used the SES simulator, simulating success.
Anonymize other user information
Anonymize other user information. Skip @edx.org accounts
*/

UPDATE wwc.auth_user
Expand All @@ -11,7 +23,6 @@ UPDATE wwc.auth_user
username = concat('user-',cast(id AS CHAR)),
first_name = concat('user-',cast(id AS CHAR)),
last_name = concat('user-',cast(id AS CHAR)),
password = null,
last_login = null,
date_joined = null
where email not like ('%@edx.org');
Expand Down

0 comments on commit 2a7669b

Please sign in to comment.