zulip/scripts/setup/initialize-database

20 lines
416 B
Plaintext
Raw Normal View History

#!/bin/bash -xe
# Change to root directory of the checkout that we're running from
cd $(dirname $0)/../..
psql <<EOF
DROP SCHEMA zulip CASCADE;
DROP SCHEMA public CASCADE;
CREATE SCHEMA zulip;
EOF
python manage.py checkconfig
python manage.py syncdb --noinput
python manage.py migrate
python manage.py createcachetable third_party_api_results
python manage.py initialize_enterprise_db
supervisorctl restart all