Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
2a7669b5
Commit
2a7669b5
authored
Apr 29, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding student_passwordhistory
parent
0f11d60b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
util/vpc-tools/sanitize-db.sql
+13
-2
No files found.
util/vpc-tools/sanitize-db.sql
View file @
2a7669b5
SET
FOREIGN_KEY_CHECKS
=
0
;
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.
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
UPDATE
wwc
.
auth_user
...
@@ -11,7 +23,6 @@ UPDATE wwc.auth_user
...
@@ -11,7 +23,6 @@ UPDATE wwc.auth_user
username
=
concat
(
'user-'
,
cast
(
id
AS
CHAR
)),
username
=
concat
(
'user-'
,
cast
(
id
AS
CHAR
)),
first_name
=
concat
(
'user-'
,
cast
(
id
AS
CHAR
)),
first_name
=
concat
(
'user-'
,
cast
(
id
AS
CHAR
)),
last_name
=
concat
(
'user-'
,
cast
(
id
AS
CHAR
)),
last_name
=
concat
(
'user-'
,
cast
(
id
AS
CHAR
)),
password
=
null
,
last_login
=
null
,
last_login
=
null
,
date_joined
=
null
date_joined
=
null
where
email
not
like
(
'%@edx.org'
);
where
email
not
like
(
'%@edx.org'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment