sanitize-db-prod_grader.sql 498 Bytes
Newer Older
1 2 3 4 5 6
SET FOREIGN_KEY_CHECKS=0;

/*
   Grader has its own django core tables.
*/

7
UPDATE auth_user
8 9 10 11 12 13 14 15 16 17 18
    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;