mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
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)
9 lines
310 B
Bash
Executable File
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
|