# GNUmed database system bootstrapping config file
#-------------------------------------------------
# license: GPL v2 or later
# author: Karsten Hilbert@gmx.net

#----------------------------------
[installation]
interactive = yes

keep temp files = no

description = $description$
This will update an existing GNUmed database.

It does so by applying all fixup SQL scripts
appropriate to the version of the database.

$description$

bundles = $bundles$
v19-fixups
$bundles$

#----------------------------------
[bundle v19-fixups]
database alias = gnumed_v19
minimum postgresql version = 9.1
schema base directory = ../sql/v18-v19/fixups/
schema = $schema$
v19-gm-schema_revision_handling-fixup.sql
v19-bill-v_bills-fixup.sql
v19-bill-bill_item-fixup.sql
v19-dem-lnk_org_unit2ext_id-fixup.sql
v19-dem-org-fixup.sql
v19-dem-org-idx-fixup.sql
v19-dem-v_orgs_v_org_units-fixup.sql
v19-dem-v_praxis_branches-fixup.sql
v19-clin-encounter-fixup.sql
v19-clin-test_org-fixup.sql
v19-clin-test_type-fixup.sql
v19-find_potentially_misappropriated_soap-fixup.sql
$schema$

#----------------------------------
[database gnumed_v19]
name = gnumed_v19
drop target database = 0
use existing target database = 1
target version = v19
transfer users = 0

source database = template1
audit disable = 1
schema base directory = ../sql/v18-v19/
schema = $schema$
$schema$

superuser schema = $superuser schema$
superuser/v19-install-pg_trgm.sql
$superuser schema$

upgrade plausibility checks = $upgrade plausibility checks$
$upgrade plausibility checks$

script base directory = ../sql/v18-v19/python/
data import scripts = $data import scripts$
$data import scripts$

#----------------------------------
[cluster]
host name = 
port = 5432
maintenance database = template1
schema base directory = ../sql/v18-v19/
schema = $schema$
$schema$

#----------------------------------
# these really shouldn't be changed
#----------------------------------
[GnuMed defaults]

groups = $groups$
$groups$

#----------------------------------
