do-schema-change: Use COLLATE utf8_general_ci not utf8_bin

Amazingly the choice of collation affects whether Django returns bytestring or Unicode values.

(imported from commit f3fcff302ebdeae4ad15bd8fbe063106c6be9cb1)
This commit is contained in:
Keegan McAllister 2012-10-04 11:01:42 -04:00
parent 120d0aa99d
commit 2c7c378fde
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
echo "drop database humbug; create database humbug DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin;" | mysql
echo "drop database humbug; create database humbug DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;" | mysql
python manage.py syncdb
python manage.py populate_db --replay-old-zephyrs -n0