Files
zulip/tools/do-destroy-rebuild-database
Tim Abbott 7927edb374 Ensure your dev environment API key matches your ~/.humbugrc.
(imported from commit d4d0699ce912685ede445ed677c46dfeefa68b42)
2013-05-29 15:11:24 -04:00

11 lines
367 B
Bash
Executable File

#!/bin/sh -xe
echo "DROP SCHEMA humbug CASCADE; CREATE SCHEMA humbug;" | python manage.py dbshell
python manage.py syncdb --noinput
python manage.py migrate
python manage.py createcachetable third_party_api_results
python manage.py populate_db --replay-old-messages -n0
# Ensure that the local user's API key is synced from the server
python manage.py sync_api_key