Add tool to replace the production server's database schema.

(imported from commit 2aeab792275e43549f3644875a5c360b0f0582a1)
This commit is contained in:
Tim Abbott 2012-10-02 15:56:03 -04:00
parent b8236b5a60
commit 78dae6a11d
1 changed files with 4 additions and 0 deletions

4
tools/do-schema-change Executable file
View File

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