Create kngil DB in init shell script

This commit is contained in:
Lectom C Han
2026-02-04 17:32:28 +09:00
parent 8d7ae422e4
commit 90dbb86c94
2 changed files with 12 additions and 8 deletions

View File

@@ -20,14 +20,6 @@ SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Ensure target database exists (idempotent for init scripts)
--
\connect postgres
SELECT 'CREATE DATABASE kngil'
WHERE NOT EXISTS (SELECT 1 FROM pg_database WHERE datname = 'kngil')\gexec
\connect kngil
--
-- TOC entry 6 (class 2615 OID 16413)
-- Name: kngil; Type: SCHEMA; Schema: -; Owner: postgres