# 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 version 2
database to the version 3 schema. It does not do
any harm to the data contained within.

The existing database is cloned first. The copy is
then modified. The original database remains unchanged.
$description$

bundles = $bundles$
v2-v3-static
v2-v3-dynamic
$bundles$

#----------------------------------
[bundle v2-v3-static]
database alias = gnumed_v3
minimum postgresql version = 9.0
schema base directory = ../sql/v2-v3/static/
schema = $schema$
cfg-cfg_item.sql
cfg-cfg_str_array.sql
ref-schema.sql
ref-document_type.sql
blobs-doc_type.sql
blobs-doc_med.sql
blobs-doc_obj.sql
blobs-doc_desc.sql
blobs-xlnk_identity.sql
dem-lnk_job2person.sql
clin-test_org.sql
clin-test_result.sql
clin-lab_request.sql
clin-waiting_list.sql
clin-hx_family_item.sql
clin-allergy_state.sql
clin-lnk_pat2vaccination_course.sql
clin-vaccination.sql
clin-health_issue.sql
audit-log_health_issue.sql
clin-episode.sql
clin-encounter.sql
au-referral.sql
clin-xlnk_identity.sql
$schema$

#----------------------------------
[bundle v2-v3-dynamic]
database alias = gnumed_v3
minimum postgresql version = 9.0
schema base directory = ../sql/v2-v3/dynamic/
schema = $schema$
cfg-set_option.sql
ref-document_type-dynamic.sql
blobs-v_doc_type.sql
blobs-v_doc_med.sql
blobs-v_doc_desc.sql
blobs-v_obj4doc_no_data.sql
blobs-v_reviewed_doc_objects.sql
dem-create_urb.sql
dem-create_street.sql
dem-create_address.sql
dem-v_uniq_zipped_urbs.sql
dem-v_state.sql
dem-v_urb.sql
dem-v_street.sql
dem-v_address.sql
dem-v_pat_addresses.sql
dem-v_provider_inbox.sql
dem-v_person_jobs.sql
dem-v_person_comms.sql
clin-encounter.sql
clin-health_issue.sql
clin-episode.sql
clin-clin_narrative.sql
clin-v_pat_narrative.sql
clin-v_pat_narrative_soap.sql
clin-v_hx_family.sql
clin-v_narrative4search.sql
clin-v_emr_journal.sql
clin-health_issue.sql
clin-operation.sql
$schema$

#----------------------------------
[database gnumed_v3]
name = gnumed_v3
drop target database = 1
target version = v3
source database = gnumed_v2
source version = v2
audit disable = 1
schema base directory = ../sql/v2-v3/
schema = $schema$
$schema$

superuser schema = $superuser schema$
superuser/public-gm_transfer_users.sql
superuser/transfer_users.sql
$superuser schema$

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

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

groups = $groups$
$groups$

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