hydra-sql/containers/compose/postgres/init-db.d/create_database_hydra.sql

3 lines
154 B
SQL

SELECT 'CREATE DATABASE hydra' WHERE NOT EXISTS (SELECT * FROM pg_database WHERE datname = 'hydra')\gexec
GRANT ALL PRIVILEGES ON DATABASE hydra TO lasql