mirror of https://github.com/zulip/zulip.git
Create tsearch_extras in production database setup
(imported from commit e6c699b06f022d923b57ccee7ad778f870bf890d)
This commit is contained in:
parent
3649c7be73
commit
a3d85f501b
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue