zulip/scripts/setup/initialize-database
David Roe 3f7cb34b00 enterprise => voyager
(imported from commit 04be792bb480d5e5db1c91d296d1000cf1682571)
2015-08-21 10:33:35 -07:00

19 lines
389 B
Bash
Executable File

#!/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 migrate --noinput
python manage.py createcachetable third_party_api_results
python manage.py initialize_voyager_db
supervisorctl restart all