Create tsearch_extras in production database setup

(imported from commit e6c699b06f022d923b57ccee7ad778f870bf890d)
This commit is contained in:
Reid Barton 2015-08-20 22:17:25 -07:00
parent 3649c7be73
commit a3d85f501b
2 changed files with 6 additions and 7 deletions

View File

@ -3,12 +3,6 @@
# Change to root directory of the checkout that we're running from # Change to root directory of the checkout that we're running from
cd $(dirname $0)/../.. cd $(dirname $0)/../..
psql <<EOF
DROP SCHEMA zulip CASCADE;
DROP SCHEMA public CASCADE;
CREATE SCHEMA zulip;
EOF
python manage.py checkconfig python manage.py checkconfig
python manage.py migrate --noinput python manage.py migrate --noinput

View File

@ -1,4 +1,4 @@
#/bin/sh -xe #!/bin/sh -xe
su postgres -c psql <<EOF su postgres -c psql <<EOF
CREATE USER zulip; CREATE USER zulip;
@ -7,5 +7,10 @@ DROP DATABASE IF EXISTS zulip;
CREATE DATABASE zulip OWNER=zulip; CREATE DATABASE zulip OWNER=zulip;
EOF EOF
su postgres -c psql zulip <<EOF
CREATE SCHEMA zulip OWNER=zulip;
CREATE EXTENSION tsearch_extras SCHEMA zulip;
EOF
echo "Database created" echo "Database created"