From a8c27881f7e6fe7b4cd4d0f6396a4d8c5d43008c Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 10 Jun 2022 15:26:17 +0430 Subject: updates --- db/postgres/create_db.pgsql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 db/postgres/create_db.pgsql (limited to 'db/postgres/create_db.pgsql') diff --git a/db/postgres/create_db.pgsql b/db/postgres/create_db.pgsql new file mode 100644 index 0000000..3c52221 --- /dev/null +++ b/db/postgres/create_db.pgsql @@ -0,0 +1,2 @@ +SELECT 'CREATE DATABASE irc' +WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'irc')\gexec -- cgit v1.2.3