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

3 lines
154 B
MySQL
Raw Normal View History

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