2012-10-02 21:56:03 +02:00
|
|
|
#!/bin/sh
|
2012-10-30 21:11:37 +01:00
|
|
|
|
|
|
|
# We used to have COLLATE utf8_bin. But amazingly, the choice of collation
|
|
|
|
# order affects whether Django returns bytestring or Unicode values.
|
2012-10-04 17:01:42 +02:00
|
|
|
echo "drop database humbug; create database humbug DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;" | mysql
|
2012-10-30 21:11:37 +01:00
|
|
|
|
2012-10-04 17:02:51 +02:00
|
|
|
python manage.py syncdb --noinput
|
2012-10-12 17:08:48 +02:00
|
|
|
echo "ALTER TABLE auth_user ADD UNIQUE INDEX (email);" | mysql
|
2012-10-03 21:29:38 +02:00
|
|
|
python manage.py populate_db --replay-old-messages -n0
|