merged from gramsrv upstream
This commit is contained in:
parent
79c64ee916
commit
21a0856587
651 changed files with 54774 additions and 4590 deletions
11
deploy/postgres-init/010_branch_databases.sql
Normal file
11
deploy/postgres-init/010_branch_databases.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
\set ON_ERROR_STOP on
|
||||
|
||||
-- main and v2 intentionally have independent migration histories. Keep them
|
||||
-- in separate PostgreSQL databases even when they share the local container.
|
||||
SELECT 'CREATE DATABASE telesrv_main OWNER telesrv'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM pg_database WHERE datname = 'telesrv_main')
|
||||
\gexec
|
||||
|
||||
SELECT 'CREATE DATABASE telesrv_v2 OWNER telesrv'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM pg_database WHERE datname = 'telesrv_v2')
|
||||
\gexec
|
||||
Loading…
Add table
Add a link
Reference in a new issue