mirror of https://github.com/zulip/zulip.git
create-db: Default dbuser and dbname to zulip.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
832c763c38
commit
cb8d9a1f8a
|
@ -1,3 +1,8 @@
|
|||
\set dbuser :dbuser
|
||||
SELECT CASE WHEN :'dbuser' = ':dbuser' THEN 'zulip' ELSE :'dbuser' END AS dbuser \gset
|
||||
\set dbname :dbname
|
||||
SELECT CASE WHEN :'dbname' = ':dbname' THEN 'zulip' ELSE :'dbname' END AS dbname \gset
|
||||
|
||||
\connect postgres
|
||||
DROP DATABASE IF EXISTS :"dbname";
|
||||
SELECT format($$BEGIN
|
||||
|
|
Loading…
Reference in New Issue