zulip/scripts/setup/create-db.sql

10 lines
265 B
MySQL
Raw Normal View History

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
CREATE SCHEMA zulip AUTHORIZATION zulip;