Commit 0f11d60b by John Jarvis

syntax

parent 69e37175
...@@ -6,20 +6,15 @@ SET FOREIGN_KEY_CHECKS=0; ...@@ -6,20 +6,15 @@ SET FOREIGN_KEY_CHECKS=0;
*/ */
UPDATE wwc.auth_user UPDATE wwc.auth_user
set email = concat('success+',cast(id AS CHAR),'@simulator.amazonses.com') set
where email not like ('%@edx.org'), email = concat('success+',cast(id AS CHAR),'@simulator.amazonses.com'),
set username = concat('user-',cast(id AS CHAR)) username = concat('user-',cast(id AS CHAR)),
where email not like ('%@edx.org'), first_name = concat('user-',cast(id AS CHAR)),
set first_name = concat('user-',cast(id AS CHAR)) last_name = concat('user-',cast(id AS CHAR)),
where email not like ('%@edx.org'), password = null,
set last_name = concat('user-',cast(id AS CHAR)) last_login = null,
where email not like ('%@edx.org'), date_joined = null
set password = null where email not like ('%@edx.org');
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');
/* /*
There are a handful of email changes requests captured in flight. There are a handful of email changes requests captured in flight.
...@@ -43,37 +38,33 @@ UPDATE wwc.student_courseenrollmentallowed ...@@ -43,37 +38,33 @@ UPDATE wwc.student_courseenrollmentallowed
*/ */
UPDATE wwc.auth_userprofile UPDATE wwc.auth_userprofile
set name = concat('user-',cast(id as CHAR)), set
set language = "", name = concat('user-',cast(id as CHAR)),
set location = "", language = "",
set meta = "", location = "",
set gender = null, meta = "",
set mailing_address = null, gender = null,
set year_of_birth = null, mailing_address = null,
set level_of_education = null, year_of_birth = null,
set goals = null level_of_education = null,
set country = "", goals = null,
set city = null; country = "",
city = null;
/* /*
Grader has its own django core tables. Grader has its own django core tables.
*/ */
UPDATE prod_grader.auth_user UPDATE prod_grader.auth_user
set email = concat('success+',cast(id AS CHAR),'@simulator.amazonses.com') set
where email not like ('%@edx.org'), email = concat('success+',cast(id AS CHAR),'@simulator.amazonses.com'),
set username = concat('user-',cast(id AS CHAR)) username = concat('user-',cast(id AS CHAR)),
where email not like ('%@edx.org'), first_name = concat('user-',cast(id AS CHAR)),
set first_name = concat('user-',cast(id AS CHAR)) last_name = concat('user-',cast(id AS CHAR)),
where email not like ('%@edx.org'), password = null,
set last_name = concat('user-',cast(id AS CHAR)) last_login = null,
where email not like ('%@edx.org'), date_joined = null
set password = null where email not like ('%@edx.org');
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 FOREIGN_KEY_CHECKS=1; SET FOREIGN_KEY_CHECKS=1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment