install: Move DROP SCHEMA PUBLIC to run in zulip database.

(imported from commit 1eef44e7255b8fe1314f7763ebfc6c04083305e5)
This commit is contained in:
Tim Abbott 2013-11-13 12:06:53 -05:00
parent c842b42b12
commit c54322f76a
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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"