do-schema-change: Recreate the auth_user email index.

This index is important since we are searching by email address.

(imported from commit 49c8dab68a0c7857d1c9620b856e4de5c4b8c669)
This commit is contained in:
Tim Abbott 2012-10-12 11:08:48 -04:00
parent 0a0283cba7
commit 2f1d68e09a
1 changed files with 1 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#!/bin/sh
echo "drop database humbug; create database humbug DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;" | mysql
python manage.py syncdb --noinput
echo "ALTER TABLE auth_user ADD UNIQUE INDEX (email);" | mysql
python manage.py populate_db --replay-old-messages -n0