mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
install: Move DROP SCHEMA PUBLIC to run in zulip database.
(imported from commit 1eef44e7255b8fe1314f7763ebfc6c04083305e5)
This commit is contained in:
@@ -3,7 +3,11 @@
|
|||||||
# 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)/../..
|
||||||
|
|
||||||
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
|
python manage.py checkconfig
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ CREATE USER zulip;
|
|||||||
ALTER ROLE zulip SET search_path TO zulip,public;
|
ALTER ROLE zulip SET search_path TO zulip,public;
|
||||||
DROP DATABASE IF EXISTS zulip;
|
DROP DATABASE IF EXISTS zulip;
|
||||||
CREATE DATABASE zulip OWNER=zulip;
|
CREATE DATABASE zulip OWNER=zulip;
|
||||||
DROP SCHEMA public CASCADE;
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "Database created"
|
echo "Database created"
|
||||||
|
|||||||
Reference in New Issue
Block a user