zulip/tools/do-schema-change
Tim Abbott 78dae6a11d Add tool to replace the production server's database schema.
(imported from commit 2aeab792275e43549f3644875a5c360b0f0582a1)
2012-10-02 16:17:48 -04:00

5 lines
201 B
Bash
Executable File

#!/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