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

#----------------------------------
[revision control]
file = $Source: /home/ncq/Projekte/cvs2git/vcs-mirror/gnumed/gnumed/server/bootstrap/update_db-v7_v8.conf,v $
version = $Revision: 1.17 $

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

keep temp files = no

description = $description$
This will update an existing GNUmed version 7
database to the version 8 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$
v7-v8-static
v7-v8-dynamic
$bundles$

#----------------------------------
[bundle v7-v8-static]
database alias = gnumed_v8
minimum postgresql version = 8.1
schema base directory = ../sql/v7-v8/static/
schema = $schema$
gm-notifying_tables.sql
v8-dem_lnk_identity2comm.sql
v8-dem_lnk_job2person.sql
$schema$

#----------------------------------
[bundle v7-v8-dynamic]
database alias = gnumed_v8
minimum postgresql version = 8.1
schema base directory = ../sql/v7-v8/dynamic/
schema = $schema$
v8-gm-schema_revision_handling.sql
gm-notify_functions.sql
cfg-report_query.sql
v8-dem-enum_ext_id_types.sql
v8-dem-v_person_names.sql
v8-dem-v_person_comms.sql
clin-allergy_state.sql
clin-adjust_soap_cat.sql
blobs-doc_obj.sql
blobs-delete_document.sql
add_notification_signals.sql
$schema$

#----------------------------------
[database gnumed_v8]
name = gnumed_v8
override name by = GM_CORE_DB
drop target database = 1
target version = v8
transfer users = 1
template database = gnumed_v7
template version = v7
server alias = local host
audit disable = 0
audit trail parent table = audit.audit_trail
audit trail table prefix = log_
audit fields table = audit.audit_fields
schema base directory = ../sql/v7-v8/
schema = $schema$
$schema$

superuser schema = $superuser schema$
$superuser schema$

upgrade plausibility checks = $upgrade plausibility checks$
identities::::select count(1) from dem.identity
select count(1) from dem.identity
names::::select count(1) from dem.names
select count(1) from dem.names
addresses::::select count(1) from dem.address
select count(1) from dem.address
episodes::::select count(1) from clin.episode
select count(1) from clin.episode
encounters::::select count(1) from clin.encounter
select count(1) from clin.encounter
issues::::select count(1) from clin.health_issue
select count(1) from clin.health_issue
documents::::select count(1) from blobs.doc_med
select count(1) from blobs.doc_med
pages::::select count(1) from blobs.doc_obj
select count(1) from blobs.doc_obj
allergies::::select count(1) from clin.allergy
select count(1) from clin.allergy
clinical items::::select count(1) from clin.clin_root_item
select count(1) from clin.clin_root_item
communication channels::::select count(1) from dem.lnk_identity2comm
select count(1) from dem.lnk_identity2comm
$upgrade plausibility checks$

script base directory = ../sql/v7-v8/python/
data import scripts = $data import scripts$
$data import scripts$

#----------------------------------
[server local host]
name = 
port = 5432
template database = template1
super user alias = postgres
schema base directory = ../sql/v7-v8/
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$

#----------------------------------
# $Log: update_db-v7_v8.conf,v $
# Revision 1.17  2009-10-27 22:57:19  dr_agon
# re-enable generation audit objects, because they are required for proper
# bootstrapping of the "dynamic" bundle of next database version
#
# Revision 1.16  2009/10/27 11:01:37  ncq
# - disable audit/notify schema generation
#
# Revision 1.15  2009/05/04 11:47:32  ncq
# - add commented out password option as a hint for Windows
#
# Revision 1.14  2007/12/11 12:44:37  ncq
# - check for v8 hash
#
# Revision 1.13  2007/12/09 20:54:24  ncq
# - include job table log changes
#
# Revision 1.12  2007/12/03 20:48:58  ncq
# - add one plausibility check
#
# Revision 1.11  2007/12/02 21:01:03  ncq
# - include comms changes
#
# Revision 1.10  2007/11/28 11:57:14  ncq
# - add person names view
#
# Revision 1.9  2007/11/12 23:06:58  ncq
# - include enum_ext_id_types
#
# Revision 1.8  2007/11/07 22:56:59  ncq
# - add schema revision handling
#
# Revision 1.7  2007/11/05 11:42:21  ncq
# - adjust soap cats
# - delete_document()
#
# Revision 1.6  2007/11/04 22:59:37  ncq
# - include admin_note table
#
# Revision 1.5  2007/10/31 22:07:38  ncq
# - include blob-doc_obj.sql
#
# Revision 1.4  2007/10/30 12:53:23  ncq
# - include more notifications
#
# Revision 1.3  2007/10/25 12:29:16  ncq
# - include clin.allergy_state signalling
#
# Revision 1.2  2007/10/23 21:33:39  ncq
# - include v8 static
#
# Revision 1.1  2007/10/22 11:38:37  ncq
# - the story goes on
#
# Revision 1.11  2007/09/24 18:39:06  ncq
# - work on v7
#
# Revision 1.10  2007/09/18 22:54:23  ncq
# - add first data import script
#
# Revision 1.9  2007/09/16 22:43:22  ncq
# - add file
#
# Revision 1.8  2007/09/10 12:38:34  ncq
# - include dem.dob_is_in_range.sql
#
# Revision 1.7  2007/08/29 14:44:19  ncq
# - add cfg_report_query.sql
#
# Revision 1.6  2007/08/12 00:15:53  ncq
# - include cfg.cfg_string.sql
#
# Revision 1.5  2007/07/18 14:43:28  ncq
# - include forms handling stuff
#
# Revision 1.4  2007/07/10 20:25:14  ncq
# - add script
#
# Revision 1.3  2007/06/12 13:22:12  ncq
# - include new translations
#
# Revision 1.2  2007/06/11 19:54:01  ncq
# - include more dropped views
#
# Revision 1.1  2007/06/11 18:42:29  ncq
# - new
#
# Revision 1.7  2007/05/07 16:45:31  ncq
# - add target version v6
#
# Revision 1.6  2007/05/07 16:31:40  ncq
# - cleanup, include papersizes, new db main func in gm.
#
# Revision 1.5  2007/04/21 19:40:20  ncq
# - add mods on blobs.doc_obj
#
# Revision 1.4  2007/04/20 08:24:39  ncq
# - delete temp files
# - require 8.1
#
# Revision 1.3  2007/04/07 22:48:20  ncq
# - factor out dynamic/static stuff
#
# Revision 1.2  2007/04/06 23:19:10  ncq
# - include data mining table
#
# Revision 1.1  2007/04/02 14:15:53  ncq
# - added
#
# Revision 1.11  2007/03/27 17:37:57  ncq
# - add Release 0.2.5 workplace, backported from branch
#