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

#----------------------------------
[bundle v20-fixups]
database alias = gnumed_v20
minimum postgresql version = 9.1
schema base directory = ../sql/v19-v20/fixups/
schema = $schema$
../dynamic/v20-release_notes-dynamic.sql
v20-clin-substance_intake-fixup.sql
v20-dem-org-idx-fixup.sql
v20-clin-procedure-fixup.sql
$schema$

#----------------------------------
[database gnumed_v20]
name = gnumed_v20
override name by = GM_CORE_DB
drop target database = 0
use existing target database = 1
target version = v20
transfer users = 0

template database = template1
server alias = local host
audit disable = 1
audit trail parent table = audit.audit_trail
audit trail table prefix = log_
audit fields table = audit.audit_fields
schema base directory = ../sql/v19-v20/
schema = $schema$
$schema$

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

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

script base directory = ../sql/v19-v20/python/
data import scripts = $data import scripts$
v20-import-form-templates.py
$data import scripts$

#----------------------------------
[server local host]
name = 
port = 5432
template database = template1
super user alias = postgres
schema base directory = ../sql/v19-v20/
schema = $schema$
$schema$

#----------------------------------
[user GNUmed owner]
name = gm-dbo
password = 

[user postgres]
name = postgres
#password =

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

database owner alias = GNUmed owner

groups = $groups$
$groups$

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