File: update_db-v11_v12.conf

package info (click to toggle)
gnumed-server 21.11-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 45,408 kB
  • ctags: 3,891
  • sloc: sql: 1,210,640; python: 13,526; sh: 1,476; makefile: 19
file content (261 lines) | stat: -rw-r--r-- 7,773 bytes parent folder | download | duplicates (4)
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
249
250
251
252
253
254
255
256
257
258
259
260
261
# 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-v11_v12.conf,v $
version = $Revision: 1.18 $

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

keep temp files = no

description = $description$
This will update an existing GNUmed version 11
database to the version 12 schema. It does not do
any harm to the data contained within.

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

#v12-test_data

bundles = $bundles$
v11_fixups-pre_v12
v11-v12-static
v11-v12-dynamic
$bundles$

#----------------------------------
[bundle v11_fixups-pre_v12]
database alias = gnumed_v12
minimum postgresql version = 8.1
schema base directory = ../sql/v11-v12/fixups/
schema = $schema$
$schema$

#----------------------------------
[bundle v11-v12-static]
database alias = gnumed_v12
minimum postgresql version = 8.1
schema base directory = ../sql/v11-v12/static/
schema = $schema$
v12-gm-log_script_insertion.sql
v12-ref-drug-static.sql
v12-ref-substance_in_drug-static.sql
v12-dem-message_inbox-static.sql
v12-clin-consumed_substance-static.sql
v12-clin-substance_intake-static.sql
v12-clin-health_issue-static.sql
v12-clin-episode-static.sql
v12-clin-procedure-static.sql
$schema$

#----------------------------------
[bundle v11-v12-dynamic]
database alias = gnumed_v12
minimum postgresql version = 8.1
schema base directory = ../sql/v11-v12/dynamic/
schema = $schema$
v12-gm-nullify_empty_string.sql
v12-cfg-cfg_str_array-dynamic.sql
v12-ref-drug-dynamic.sql
v12-ref-substance_in_brand-dynamic.sql
v12-dem-message_inbox-dynamic.sql
v12-clin-health_issue-dynamic.sql
v12-clin-episode-dynamic.sql
v12-clin-procedure-dynamic.sql
v12-clin-consumed_substance-dynamic.sql
v12-clin-substance_intake-dynamic.sql
v12-clin-reviewed_test_results-dynamic.sql
v12-clin-v_health_issues.sql
v12-clin-v_health_issues_journal.sql
v12-clin-v_pat_episodes.sql
v12-clin-v_pat_episodes_journal.sql
v12-clin-v_pat_items.sql
v12-clin-v_emr_journal.sql
v12-clin-v_narrative4search.sql
v12-clin-v_potential_problem_list.sql
v12-clin-v_problem_list.sql
v12-ref-paperwork_templates.sql
$schema$

#----------------------------------
[bundle v12-test_data]
database alias = gnumed_v12
minimum postgresql version = 8.1
schema base directory = ../sql/test-data/
schema = $schema$
test_data-Kirk-diagnostic_certainty-dynamic.sql
test_data-Kirk-procedure-dynamic.sql
$schema$

#----------------------------------
[database gnumed_v12]
name = gnumed_v12
override name by = GM_CORE_DB
drop target database = 1
target version = v12		#devel
transfer users = 1
template database = gnumed_v11
template version = v11
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/v11-v12/
schema = $schema$
$schema$

superuser schema = $superuser schema$
superuser/v12-public-gm_sth_user.sql
$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
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
document 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
denormalized test results::::select count(1) from clin.v_test_results
  select count(1) from clin.v_test_results
allergy states::::select count(1) from clin.allergy_state
  select count(1) from clin.allergy_state
waiting list entries::::select count(1) from clin.waiting_list
  select count(1) from clin.waiting_list
generic codes::::select count(1) from ref.coding_system_root
  select count(1) from ref.coding_system_root
data sources::::select count(1) from ref.data_source
  select count(1) from ref.data_source
messages::::select count(1) from dem.provider_inbox
  select count(1) from dem.message_inbox
operations::::select count(1) from clin.operation
  select count(1) from clin.operation
$upgrade plausibility checks$

script base directory = ../sql/v11-v12/python/
data import scripts = $data import scripts$
import-form-templates.py
$data import scripts$

#----------------------------------
[server local host]
name = 
port = 5432
template database = template1
super user alias = postgres
schema base directory = ../sql/v11-v12/
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-v11_v12.conf,v $
# Revision 1.18  2010-02-02 13:47:55  ncq
# - adjust versioned dirs
#
# Revision 1.17  2010/01/21 08:45:14  ncq
# - include problem list view
#
# Revision 1.16  2010/01/09 19:38:12  ncq
# - cleanup
#
# Revision 1.15  2010/01/01 21:27:19  ncq
# - include typo fixup
#
# Revision 1.14  2009/12/30 18:48:06  ncq
# - include script to fix results trigger signaling review change into message inbox
#
# Revision 1.13  2009/12/22 12:04:13  ncq
# - import meds list template
#
# Revision 1.12  2009/12/01 22:07:27  ncq
# - expect v12 again
#
# Revision 1.11  2009/11/28 18:33:13  ncq
# - include view of potential problems
#
# Revision 1.10  2009/11/24 21:06:43  ncq
# - include medication tables
#
# Revision 1.9  2009/11/19 15:08:21  ncq
# - target db v12
#
# Revision 1.8  2009/10/29 17:24:52  ncq
# - include substance intake static
#
# Revision 1.7  2009/10/28 16:44:34  ncq
# - include new workplace def
#
# Revision 1.6  2009/10/27 11:12:26  ncq
# - we really need to stop including test data by default as we cannot
#   truly guarantue its import to work (people may have removed previous
#   test data making it fail) and thus we cannot know whether we must
#   take said test data into account when running plausibility checks
#   on the data after the upgrade
#
# Revision 1.5  2009/10/21 09:25:09  ncq
# - more scripts
#
# Revision 1.4  2009/09/17 21:58:58  ncq
# - include procedure test data and adjust plausibility check for it
#
# Revision 1.3  2009/09/15 15:22:40  ncq
# - run v11 fixups on v12
# - add scripts
# - add plausibility checks
#
# Revision 1.2  2009/09/01 22:41:16  ncq
# - add more scripts
#
# Revision 1.1  2009/08/28 12:22:58  ncq
# - new
#
#