mirror of https://github.com/zulip/zulip.git
create-db.sql: Handle exception if zulip user already exists.
Fixes #13530. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
parent
3cc6ff5480
commit
298d45b46a
|
@ -1,4 +1,8 @@
|
|||
CREATE USER zulip;
|
||||
DO $$BEGIN
|
||||
CREATE USER zulip;
|
||||
EXCEPTION WHEN duplicate_object THEN
|
||||
RAISE NOTICE 'zulip user already exists';
|
||||
END$$;
|
||||
ALTER ROLE zulip SET search_path TO zulip,public;
|
||||
CREATE DATABASE zulip OWNER=zulip;
|
||||
\connect zulip
|
||||
|
|
Loading…
Reference in New Issue