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

#----------------------------------
[revision control]
file = $Source: /sources/gnumed/gnumed/gnumed/server/bootstrap/update_db-v4_v5.conf,v $
version = $Revision: 1.14 $

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

keep temp files = no

description = $description$
This will update an existing GNUmed version 4
database to the version 5 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$
v4-v5-static
v4-v5-dynamic
$bundles$

#----------------------------------
[bundle v4-v5-static]
database alias = gnumed_v5
minimum postgresql version = 7.4
schema base directory = ../sql/v4-v5/static/
schema = $schema$
cfg-drop_old_tables.sql
cfg-cfg_item.sql
cfg-cfg_str_array.sql
blobs-doc_obj.sql
clin-allergy.sql
$schema$

#----------------------------------
[bundle v4-v5-dynamic]
database alias = gnumed_v5
minimum postgresql version = 7.4
schema base directory = ../sql/v4-v5/dynamic/
schema = $schema$
blobs-v_obj4doc_no_data.sql
blobs-v_latest_mugshot.sql
blobs-v_reviewed_doc_objects.sql
dem-v_provider_inbox.sql
dem-enum_ext_id_types.sql
dem-idx_identity_dob_ymd.sql
clin-encounter.sql
clin-v_most_recent_encounters.sql
clin-f_protect_clin_root_item.sql
clin-v_narrative4search.sql
clin-allergy.sql
$schema$

#----------------------------------
[database gnumed_v5]
name = gnumed_v5
override name by = GM_CORE_DB
drop target database = 1
target version = v5
template database = gnumed_v4
template version = v4
server alias = local host
notification disable = 1
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/v4-v5/
schema = $schema$
$schema$

superuser schema = $superuser schema$
superuser/transfer_users.sql
$superuser schema$

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

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

[user postgres]
name = postgres

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

database owner alias = GNUmed owner

groups = $groups$
$groups$

#----------------------------------
# $Log: update_db-v4_v5.conf,v $
# Revision 1.14  2007/11/09 14:43:20  ncq
# - disable auditing
#
# Revision 1.13  2007/11/07 22:56:27  ncq
# - set notification disable = 1
#
# Revision 1.12  2007/04/20 08:31:16  ncq
# - delete temp files
#
# Revision 1.11  2007/03/27 17:37:57  ncq
# - add Release 0.2.5 workplace, backported from branch
#
# Revision 1.10  2007/03/26 16:47:37  ncq
# - static script needs to be in static section
#
# Revision 1.9  2007/03/26 16:10:30  ncq
# - set target version to v5
#
# Revision 1.8  2007/03/18 14:15:40  ncq
# - add clin-allergy.sql
#
# Revision 1.7  2007/03/08 15:11:09  ncq
# - added filename to blobs object view
#
# Revision 1.6  2007/02/18 12:21:28  ncq
# - drop target database if it exists
#
# Revision 1.5  2007/02/10 23:49:45  ncq
# - add more dynamic scripts
#
# Revision 1.4  2007/02/09 15:01:44  ncq
# - include Syan's clin.v_most_recent_encounters speedup
#
# Revision 1.3  2007/02/05 16:10:40  ncq
# - add dynamic scripts
#
# Revision 1.2  2007/01/29 12:04:17  ncq
# - add blobs-doc_obj.sql
#
# Revision 1.1  2007/01/24 10:54:36  ncq
# - work started on v5 server
#
#
