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
edx
configuration
Commits
0f11d60b
Commit
0f11d60b
authored
Apr 29, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syntax
parent
69e37175
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
39 deletions
+30
-39
util/vpc-tools/sanitize-db.sql
+30
-39
No files found.
util/vpc-tools/sanitize-db.sql
View file @
0f11d60b
...
...
@@ -6,20 +6,15 @@ SET FOREIGN_KEY_CHECKS=0;
*/
UPDATE
wwc
.
auth_user
set
email
=
concat
(
'success+'
,
cast
(
id
AS
CHAR
),
'@simulator.amazonses.com'
)
where
email
not
like
(
'%@edx.org'
),
set
username
=
concat
(
'user-'
,
cast
(
id
AS
CHAR
))
where
email
not
like
(
'%@edx.org'
),
set
first_name
=
concat
(
'user-'
,
cast
(
id
AS
CHAR
))
where
email
not
like
(
'%@edx.org'
),
set
last_name
=
concat
(
'user-'
,
cast
(
id
AS
CHAR
))
where
email
not
like
(
'%@edx.org'
),
set
password
=
null
where
email
not
like
(
'%@edx.org'
),
set
last_login
=
null
where
email
not
like
(
'%@edx.org'
),
set
date_joined
=
null
where
email
not
like
(
'%@edx.org'
);
set
email
=
concat
(
'success+'
,
cast
(
id
AS
CHAR
),
'@simulator.amazonses.com'
),
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'
);
/*
There are a handful of email changes requests captured in flight.
...
...
@@ -43,37 +38,33 @@ UPDATE wwc.student_courseenrollmentallowed
*/
UPDATE
wwc
.
auth_userprofile
set
name
=
concat
(
'user-'
,
cast
(
id
as
CHAR
)),
set
language
=
""
,
set
location
=
""
,
set
meta
=
""
,
set
gender
=
null
,
set
mailing_address
=
null
,
set
year_of_birth
=
null
,
set
level_of_education
=
null
,
set
goals
=
null
set
country
=
""
,
set
city
=
null
;
set
name
=
concat
(
'user-'
,
cast
(
id
as
CHAR
)),
language
=
""
,
location
=
""
,
meta
=
""
,
gender
=
null
,
mailing_address
=
null
,
year_of_birth
=
null
,
level_of_education
=
null
,
goals
=
null
,
country
=
""
,
city
=
null
;
/*
Grader has its own django core tables.
*/
UPDATE
prod_grader
.
auth_user
set
email
=
concat
(
'success+'
,
cast
(
id
AS
CHAR
),
'@simulator.amazonses.com'
)
where
email
not
like
(
'%@edx.org'
),
set
username
=
concat
(
'user-'
,
cast
(
id
AS
CHAR
))
where
email
not
like
(
'%@edx.org'
),
set
first_name
=
concat
(
'user-'
,
cast
(
id
AS
CHAR
))
where
email
not
like
(
'%@edx.org'
),
set
last_name
=
concat
(
'user-'
,
cast
(
id
AS
CHAR
))
where
email
not
like
(
'%@edx.org'
),
set
password
=
null
where
email
not
like
(
'%@edx.org'
),
set
last_login
=
null
where
email
not
like
(
'%@edx.org'
),
set
date_joined
=
null
where
email
not
like
(
'%@edx.org'
);
set
email
=
concat
(
'success+'
,
cast
(
id
AS
CHAR
),
'@simulator.amazonses.com'
),
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'
);
SET
FOREIGN_KEY_CHECKS
=
1
;
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