# 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$
v21-fixups
$bundles$

#----------------------------------
[bundle v21-fixups]
database alias = gnumed_v21
minimum postgresql version = 9.2
schema base directory = ../sql/v20-v21/fixups/
schema = $schema$
v21-db-sql_inheritance-fixup.sql
v21-audit-add_table_for_audit-fixup.sql
v21-i18n-lang_funcs-fixup.sql
v21-previously-missing-array_agg-fixup.sql
v21-dem-view_grants-fixup.sql
../dynamic/v21-release_notes-dynamic.sql
v21-ref-auto_hint-tetanus_STIKO.sql
v21-ref-auto_hint-klug_entscheiden_pulmo.sql
v21-ref-auto_hint-klug_entscheiden_endokrino.sql
v21-CD_DVD-sleeve.sql
v21-AMTS_Medikationsplan-fixup.sql
v21-ref-auto_hint-smoking_status-fixup.sql
v21-ref-GKV_CU-fixup.sql
v21-clin-get_hints_for_patient-fixup.sql
v21-clin-v_substance_intakes-fixup.sql
v21-notifications-dynamic.sql
v21-clin-uppercase_soap_cat-fixup.sql
v21-dem-identity-fixup.sql
v21-Constans-TVT-OE.sql
$schema$

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

source database = template1
audit disable = 1
schema base directory = ../sql/v20-v21/
schema = $schema$
$schema$

superuser schema = $superuser schema$
$superuser schema$

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

script base directory = ../sql/v20-v21/python/
data import scripts = $data import scripts$
v21-import-form-template-fixups.py
$data import scripts$

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

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

groups = $groups$
$groups$

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