Files
zulip/tools/do-destroy-rebuild-database
Tim Abbott c65f37c910 do-destroy-rebuild-database: Fix migration with AUTH_USER_MODEL.
Django's South migrations support for setting up a new database
doesn't properly handle AUTH_USER_MODEL changing over time.  Fix this
by having the initial migration be run with AUTH_USER_MODEL set to the
default value.

(imported from commit c373db9edc61f26527c486c741f8e870614600e3)
2013-04-04 17:39:01 -04:00

9 lines
310 B
Bash
Executable File

#!/bin/sh -xe
echo "DROP SCHEMA humbug CASCADE; CREATE SCHEMA humbug;" | python manage.py dbshell
python manage.py syncdb --noinput --settings=humbug.setup_hack_settings
python manage.py migrate
python manage.py createcachetable third_party_api_results
python manage.py populate_db --replay-old-messages -n0