mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
create-db.sql: Start by dropping the zulip database if needed.
At some point the PostgreSQL Docker image started creating the zulip database for us, which caused our CREATE DATABASE to fail. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
298d45b46a
commit
8c733a3f68
@@ -1,3 +1,5 @@
|
||||
\connect postgres
|
||||
DROP DATABASE IF EXISTS zulip;
|
||||
DO $$BEGIN
|
||||
CREATE USER zulip;
|
||||
EXCEPTION WHEN duplicate_object THEN
|
||||
|
||||
Reference in New Issue
Block a user