mirror of https://github.com/zulip/zulip.git
install: Move DROP SCHEMA PUBLIC to run in zulip database.
(imported from commit 1eef44e7255b8fe1314f7763ebfc6c04083305e5)
This commit is contained in:
parent
c842b42b12
commit
c54322f76a
|
@ -3,7 +3,11 @@
|
|||
# Change to root directory of the checkout that we're running from
|
||||
cd $(dirname $0)/../..
|
||||
|
||||
echo "DROP SCHEMA zulip CASCADE; CREATE SCHEMA zulip;" | python manage.py dbshell
|
||||
psql <<EOF
|
||||
DROP SCHEMA zulip CASCADE;
|
||||
DROP SCHEMA public CASCADE;
|
||||
CREATE SCHEMA zulip;
|
||||
EOF
|
||||
|
||||
python manage.py checkconfig
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@ CREATE USER zulip;
|
|||
ALTER ROLE zulip SET search_path TO zulip,public;
|
||||
DROP DATABASE IF EXISTS zulip;
|
||||
CREATE DATABASE zulip OWNER=zulip;
|
||||
DROP SCHEMA public CASCADE;
|
||||
EOF
|
||||
|
||||
echo "Database created"
|
||||
|
|
Loading…
Reference in New Issue