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

#----------------------------------
[bundle v22-fixups]
database alias = gnumed_v22
minimum postgresql version = 9.2
schema base directory = ../sql/v21-v22/fixups/
schema = $schema$
v22-gm-concat_table_structure_v19_and_up-fixup.sql
v22-ref-paperwork_templates-fixups.sql
v22-invoice_id_grants-fixup.sql
v22-i18n-lang_funcs-fixup.sql
v22-clin-v_candidate_diagnoses-fixup.sql
v22-dem-v_message_inbox-fixup.sql
v22-add_generic_covid_vaccine.sql
v22-clin-remove_old_empty_encounters-fixup.sql
v22-clin-move_waiting_list_entry-fixup.sql
v22-blobs-doc_med-idx.sql
v22-blobs-doc_obj-idx.sql
v22-blobs-reviewed_doc_objs-idx.sql
v22-blobs-v_reviewed_doc_objects-fixup.sql
v22-dem-identity-idx.sql
v22-dem-names-idx.sql
v22-dem-unique_named_identity-fixup.sql
v22-dem-v_pat_addresses-fixups.sql
v22-dem-org-permission-fixups.sql
v22-release_notes-fixup.sql
$schema$

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

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

superuser schema = $superuser schema$
fixups/v22-gm-concat_table_structure_v19_and_up-fixup.sql
fixups/v22-gm-dbo_grants-fixup.sql
superuser/v22-gm-load_auto_explain.sql
superuser/v22-gm-user_needs_md5_2_scramsha256_pwd_switch.sql
$superuser schema$

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

script base directory = ../sql/v21-v22/python/
data import scripts = $data import scripts$
v22-import-form-templates.py
v22-2-fixup-form-templates.py
v22-import-plot-scripts.py
v22-17-fixup-form-templates.py
$data import scripts$

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

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

groups = $groups$
$groups$

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