mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
Create tsearch_extras in production database setup
(imported from commit e6c699b06f022d923b57ccee7ad778f870bf890d)
This commit is contained in:
@@ -3,12 +3,6 @@
|
||||
# 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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#/bin/sh -xe
|
||||
#!/bin/sh -xe
|
||||
|
||||
su postgres -c psql <<EOF
|
||||
CREATE USER zulip;
|
||||
@@ -7,5 +7,10 @@ DROP DATABASE IF EXISTS zulip;
|
||||
CREATE DATABASE zulip OWNER=zulip;
|
||||
EOF
|
||||
|
||||
su postgres -c psql zulip <<EOF
|
||||
CREATE SCHEMA zulip OWNER=zulip;
|
||||
CREATE EXTENSION tsearch_extras SCHEMA zulip;
|
||||
EOF
|
||||
|
||||
echo "Database created"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user