1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
|
# 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-v8_v9.conf,v $
version = $Revision: 1.24 $
#----------------------------------
[installation]
interactive = yes
keep temp files = no
description = $description$
This will update an existing GNUmed version 8
database to the version 9 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$
v8-v9-static
v8-v9-dynamic
$bundles$
#----------------------------------
[bundle v8-v9-static]
database alias = gnumed_v9
minimum postgresql version = 8.1
schema base directory = ../sql/v8-v9/static/
schema = $schema$
v9-dem-lnk_identity2comm.sql
v9-clin-test_result-static.sql
v9-clin-lab_request-static.sql
v9-clin-incoming_data_unmatch-static.sql
v9-clin-incoming_data_unmatch-static2.sql
v9-clin-coded_phrase.sql
v9-clin-episode-static.sql
v9-clin-health_issue-static.sql
v9-clin-keyword_expansion-static.sql
v9-ref-static.sql
v9-ref-coding_system_root-static.sql
v9-ref-loinc-static.sql
$schema$
#----------------------------------
[bundle v8-v9-dynamic]
database alias = gnumed_v9
minimum postgresql version = 8.1
schema base directory = ../sql/v8-v9/dynamic/
schema = $schema$
v9-i18n-dynamic.sql
v9-cfg-report_query.sql
v9-cfg-cfg_str_array.sql
v9-cfg-db_logon_banner.sql
v9-ref-data_source-dynamic.sql
v9-ref-coding_system_root-dynamic.sql
v9-ref-loinc-dynamic.sql
v9-ref-atc-dynamic.sql
v9-ref-v_coded_terms.sql
v9-dem-v_person_comms.sql
v9-clin-allergy-dynamic.sql
v9-clin-coded_item_narrative.sql
v9-clin-coded_phrase.sql
v9-clin-test_result-dynamic.sql
v9-clin-lab_request-dynamic.sql
v9-clin-episode-dynamic.sql
v9-clin-health_issue-dynamic.sql
v9-clin-incoming_data_unmatch-dynamic.sql
v9-clin-v_codes4diag.sql
v9-clin-v_test_results.sql
v9-clin-encounters-dynamic.sql
v9-blobs-delete_document.sql
v9-blobs-doc_type-dynamic.sql
v9-dem-v_provider_inbox.sql
v9-clin-v_emr_journal.sql
v9-clin-keyword_expansion-dynamic.sql
v9-clin-keyword_expansion-data.sql
v9-i18n-translations.sql
$schema$
#----------------------------------
[database gnumed_v9]
name = gnumed_v9
override name by = GM_CORE_DB
drop target database = 1
target version = v9
transfer users = 1
template database = gnumed_v8
template version = v8
server alias = local host
notification disable = 1
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/v8-v9/
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.v_pat_encounters where type != 'administrative 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
test results::::select count(1) from clin.test_result
select count(1) from clin.test_result
unmatched test results::::select count(1) from clin.incoming_data_unmatched
select count(1) from clin.incoming_data_unmatched
unmatchable test results::::select count(1) from clin.incoming_data_unmatchable
select count(1) from clin.incoming_data_unmatchable
$upgrade plausibility checks$
script base directory = ../sql/v8-v9/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/v8-v9/
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-v8_v9.conf,v $
# Revision 1.24 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.23 2009/10/27 11:01:37 ncq
# - disable audit/notify schema generation
#
# Revision 1.22 2009/05/04 11:47:32 ncq
# - add commented out password option as a hint for Windows
#
# Revision 1.21 2008/08/21 10:22:08 ncq
# - include unmatched changes and two more sanity checks
#
# Revision 1.20 2008/08/17 12:07:38 ncq
# - include translations
#
# Revision 1.19 2008/08/17 10:32:03 ncq
# - add one more plausibility check
#
# Revision 1.18 2008/08/15 16:00:00 ncq
# - include script to fix allergy delete trigger function
#
# Revision 1.17 2008/08/01 10:42:58 ncq
# - add logon banner change
#
# Revision 1.16 2008/07/24 18:23:14 ncq
# - set proper target db version
#
# Revision 1.15 2008/07/15 15:26:32 ncq
# - include keyword data
#
# Revision 1.14 2008/07/10 21:10:00 ncq
# - include keyword expansion tables
#
# Revision 1.13 2008/06/22 17:33:11 ncq
# - include new emr journal script
#
# Revision 1.12 2008/05/29 15:33:04 ncq
# - add script
#
# Revision 1.11 2008/04/11 23:16:12 ncq
# - include encounters script
#
# Revision 1.10 2008/03/29 16:23:59 ncq
# - new scripts
#
# Revision 1.9 2008/03/20 15:32:14 ncq
# - add script
#
# Revision 1.8 2008/03/05 22:36:39 ncq
# - added scripts
#
# Revision 1.7 2008/03/02 11:27:41 ncq
# - include more files
#
# Revision 1.6 2008/02/26 16:28:33 ncq
# - include a bunch of scripts
#
# Revision 1.5 2008/01/27 21:24:14 ncq
# - include more scripts
#
# Revision 1.4 2008/01/11 16:16:40 ncq
# - add more scripts
#
# Revision 1.3 2008/01/07 20:30:02 ncq
# - add static
#
# Revision 1.2 2008/01/07 14:16:29 ncq
# - set target db version to devel
#
# Revision 1.1 2008/01/05 16:31:43 ncq
# - new
#
#
|