Fix sql e migration

This commit is contained in:
Lorenzo Sanesi
2026-07-25 12:38:44 +02:00
parent a4cca3f2c1
commit 1326a3c887
3 changed files with 319 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
-- scouthub-attivita-be usa un database separato sulla stessa istanza Postgres di "db".
-- Eseguito solo al primo avvio del container (volume dati vuoto).
SELECT 'CREATE DATABASE scouthub'
WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'scouthub')
\gexec