Files
zulip/tools/do-destroy-rebuild-database
Tim Abbott 15c83127ee Rename do-schema-change to something more scary.
(imported from commit e02b9e7a778d104fb0bdb346947f639622186aa7)
2012-12-14 17:57:23 -05:00

8 lines
279 B
Bash
Executable File

#!/bin/sh -xe
echo "DROP SCHEMA humbug CASCADE; CREATE SCHEMA humbug;" | psql -h localhost humbug humbug
python manage.py syncdb --noinput
echo "CREATE UNIQUE INDEX ON auth_user (email);" | psql -h localhost humbug humbug
python manage.py populate_db --replay-old-messages -n0