mirror of https://github.com/zulip/zulip.git
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:
parent
120d0aa99d
commit
2c7c378fde
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue