[med-svn] [gnumed-server] 01/03: Imported Upstream version 21.3

Andreas Tille tille at debian.org
Thu Apr 7 19:50:16 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository gnumed-server.

commit 8c071eee7e833b21c9ef7c67e22155b26c263721
Author: Andreas Tille <tille at debian.org>
Date:   Thu Apr 7 21:23:36 2016 +0200

    Imported Upstream version 21.3
---
 server/bootstrap/fixup_db-v21.conf                 |   1 +
 .../{fixup_db-v21.conf => fixup_db-v22.conf}       |  22 ++--
 server/bootstrap/update_db-v20_v21.conf            |   2 +
 ...date_db-v20_v21.conf => update_db-v21_v22.conf} | 133 ++++++---------------
 server/doc/schema/gnumed-entire_schema.html        |   2 +-
 server/pycommon/gmI18N.py                          |  21 ++--
 server/pycommon/gmTools.py                         |   2 +-
 .../sql/v20-v21/dynamic/v21-dem-region-dynamic.sql |  20 +++-
 .../v20-v21/dynamic/v21-release_notes-dynamic.sql  |  37 +++---
 .../v20-v21/fixups/v21-dem-view_grants-fixup.sql   |  25 ++++
 10 files changed, 118 insertions(+), 147 deletions(-)

diff --git a/server/bootstrap/fixup_db-v21.conf b/server/bootstrap/fixup_db-v21.conf
index 443e2fb..d140a39 100644
--- a/server/bootstrap/fixup_db-v21.conf
+++ b/server/bootstrap/fixup_db-v21.conf
@@ -27,6 +27,7 @@ database alias = gnumed_v21
 minimum postgresql version = 9.2
 schema base directory = ../sql/v20-v21/fixups/
 schema = $schema$
+v21-dem-view_grants-fixup.sql
 ../dynamic/v21-release_notes-dynamic.sql
 $schema$
 
diff --git a/server/bootstrap/fixup_db-v21.conf b/server/bootstrap/fixup_db-v22.conf
similarity index 83%
copy from server/bootstrap/fixup_db-v21.conf
copy to server/bootstrap/fixup_db-v22.conf
index 443e2fb..5d2995e 100644
--- a/server/bootstrap/fixup_db-v21.conf
+++ b/server/bootstrap/fixup_db-v22.conf
@@ -18,25 +18,25 @@ appropriate to the version of the database.
 $description$
 
 bundles = $bundles$
-v21-fixups
+v22-fixups
 $bundles$
 
 #----------------------------------
-[bundle v21-fixups]
-database alias = gnumed_v21
+[bundle v22-fixups]
+database alias = gnumed_v22
 minimum postgresql version = 9.2
-schema base directory = ../sql/v20-v21/fixups/
+schema base directory = ../sql/v21-v22/fixups/
 schema = $schema$
-../dynamic/v21-release_notes-dynamic.sql
+../dynamic/v22-release_notes-dynamic.sql
 $schema$
 
 #----------------------------------
-[database gnumed_v21]
-name = gnumed_v21
+[database gnumed_v22]
+name = gnumed_v22
 override name by = GM_CORE_DB
 drop target database = 0
 use existing target database = 1
-target version = v21
+target version = v22
 transfer users = 0
 
 template database = template1
@@ -45,7 +45,7 @@ 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/v20-v21/
+schema base directory = ../sql/v21-v22/
 schema = $schema$
 $schema$
 
@@ -55,7 +55,7 @@ $superuser schema$
 upgrade plausibility checks = $upgrade plausibility checks$
 $upgrade plausibility checks$
 
-script base directory = ../sql/v20-v21/python/
+script base directory = ../sql/v21-v22/python/
 data import scripts = $data import scripts$
 $data import scripts$
 
@@ -65,7 +65,7 @@ name =
 port = 5432
 template database = template1
 super user alias = postgres
-schema base directory = ../sql/v20-v21/
+schema base directory = ../sql/v21-v22/
 schema = $schema$
 $schema$
 
diff --git a/server/bootstrap/update_db-v20_v21.conf b/server/bootstrap/update_db-v20_v21.conf
index 566fda0..072e6c3 100644
--- a/server/bootstrap/update_db-v20_v21.conf
+++ b/server/bootstrap/update_db-v20_v21.conf
@@ -28,6 +28,7 @@ bundles = $bundles$
 v20_fixups-pre_v21
 v20-v21-static
 v20-v21-dynamic
+v21-fixups
 $bundles$
 
 
@@ -118,6 +119,7 @@ database alias = gnumed_v21
 minimum postgresql version = 9.2
 schema base directory = ../sql/v20-v21/fixups/
 schema = $schema$
+v21-dem-view_grants-fixup.sql
 $schema$
 
 #----------------------------------
diff --git a/server/bootstrap/update_db-v20_v21.conf b/server/bootstrap/update_db-v21_v22.conf
similarity index 75%
copy from server/bootstrap/update_db-v20_v21.conf
copy to server/bootstrap/update_db-v21_v22.conf
index 566fda0..53f6b84 100644
--- a/server/bootstrap/update_db-v20_v21.conf
+++ b/server/bootstrap/update_db-v21_v22.conf
@@ -5,7 +5,7 @@
 
 #----------------------------------
 [revision control]
-file = /home/ncq/Projekte/cvs2git/vcs-mirror/gnumed/gnumed/server/bootstrap/update_db-v20_v21.conf
+file = /home/ncq/Projekte/cvs2git/vcs-mirror/gnumed/gnumed/server/bootstrap/update_db-v21_v22.conf
 version = 1.0
 
 #----------------------------------
@@ -25,135 +25,78 @@ $description$
 
 
 bundles = $bundles$
-v20_fixups-pre_v21
-v20-v21-static
-v20-v21-dynamic
+v21_fixups-pre_v22
+v21-v22-static
+v21-v22-dynamic
 $bundles$
 
 
 #----------------------------------
-[bundle v20_fixups-pre_v21]
-database alias = gnumed_v21
+[bundle v21_fixups-pre_v22]
+database alias = gnumed_v22
 minimum postgresql version = 9.2
-schema base directory = ../sql/v19-v20/fixups/
+schema base directory = ../sql/v20-v21/fixups/
 schema = $schema$
-../dynamic/v20-release_notes-dynamic.sql
-v20-clin-substance_intake-fixup.sql
-v20-dem-org-idx-fixup.sql
-v20-clin-procedure-fixup.sql
 $schema$
 
 #----------------------------------
-[bundle v20-v21-static]
-database alias = gnumed_v21
+[bundle v21-v22-static]
+database alias = gnumed_v22
 minimum postgresql version = 9.2
-schema base directory = ../sql/v20-v21/static/
+schema base directory = ../sql/v21-v22/static/
 schema = $schema$
-v21-dem-identity-static.sql
-v21-dem-region-static.sql
-v21-ref-auto_hint-static.sql
-v21-clin-substance_intake-static.sql
-v21-blobs-doc_med-static.sql
+v22-ref-chemical_substance-static.sql
+v22-ref-lnk_substance2loinc-static.sql
 $schema$
 
 #----------------------------------
-[bundle v20-v21-dynamic]
-database alias = gnumed_v21
+[bundle v21-v22-dynamic]
+database alias = gnumed_v22
 minimum postgresql version = 9.2
-schema base directory = ../sql/v20-v21/dynamic/
+schema base directory = ../sql/v21-v22/dynamic/
 schema = $schema$
-v21-audit-constraints.sql
-v21-gm-md5.sql
-v21-cfg-cfg_str_array-dynamic.sql
-v21-dem-identity-dynamic.sql
-v21-dem-region-dynamic.sql
-v21-dem-person_views.sql
-v21-dem-v_pat_addresses.sql
-v21-dem-staff-dynamic.sql
-v21-dem-external_id-dynamic.sql
-v21-dem-org-trgm_idx.sql
-v21-blobs-doc_med-dynamic.sql
-v21-blobs-v_doc_desc.sql
-v21-blobs-v_obj4doc_no_data.sql
-v21-blobs-v_reviewed_doc_objects.sql
-v21-blobs-v_latest_mugshot.sql
-v21-ref-v_auto_hints.sql
-v21-clin-procedure-dynamic.sql
-v21-clin-v_waiting_list.sql
-v21-clin-v_suppressed_hints.sql
-v21-clin-sanity_checks.sql
-v21-clin-substance_intake-dynamic.sql
-v21-clin-v_substance_intakes.sql
-v21-clin-v_pat_narrative_journal.sql
-v21-clin-v_health_issues_journal.sql
-v21-clin-v_pat_encounters_journal.sql
-v21-clin-v_pat_episodes_journal.sql
-v21-clin-v_family_history_journal.sql
-v21-clin-v_pat_allergies_journal.sql
-v21-clin-v_pat_allergy_state_journal.sql
-v21-clin-v_test_results_journal.sql
-v21-clin-v_hospital_stays_journal.sql
-v21-blobs-v_doc_med_journal.sql
-v21-clin-v_substance_intake_journal.sql
-v21-clin-v_procedures_journal.sql
-v21-clin-v_vaccinations_journal.sql
-v21-clin-v_suppressed_hints_journal.sql
-v21-clin-v_external_care_journal.sql
-v21-clin-v_edc_journal.sql
-v21-clin-v_reminders_journal.sql
-v21-clin-v_emr_journal.sql
-v21-clin-v_substance_intake4narrative_search.sql
-v21-clin-v_export_items.sql
-v21-clin-v_narrative4search.sql
-v21-clin-vaccination-dynamic.sql
-v21-ref-paperwork_templates.sql
-v21-HIT_risk.sql
-v21-gm-db-translations-de_DE.sql
-v21-release_notes-dynamic.sql
 $schema$
 
 #----------------------------------
-[bundle v21-fixups]
-database alias = gnumed_v21
+[bundle v22-fixups]
+database alias = gnumed_v22
 minimum postgresql version = 9.2
-schema base directory = ../sql/v20-v21/fixups/
+schema base directory = ../sql/v21-v22/fixups/
 schema = $schema$
 $schema$
 
 #----------------------------------
-[bundle v21-test_data]
-database alias = gnumed_v21
+[bundle v22-test_data]
+database alias = gnumed_v22
 minimum postgresql version = 9.2
 schema base directory = ../sql/test-data/
 schema = $schema$
 $schema$
 
 #----------------------------------
-[database gnumed_v21]
-name = gnumed_v21
+[database gnumed_v22]
+name = gnumed_v22
 override name by = GM_CORE_DB
 drop target database = 1
-target version = v21
+target version = devel
+#target version = v22
 transfer users = 1
-template database = gnumed_v20
-template version = v20
+template database = gnumed_v21
+template version = v21
 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/v20-v21/
+schema base directory = ../sql/v21-v22/
 schema = $schema$
 $schema$
 
 superuser schema = $superuser schema$
-superuser/v21-reinstall-pg_trgm.sql
 $superuser schema$
 
-script base directory = ../sql/v20-v21/python/
+script base directory = ../sql/v21-v22/python/
 data import scripts = $data import scripts$
-v21-import-plot-scripts.py
-v21-import-form-templates.py
 $data import scripts$
 
 
@@ -168,7 +111,7 @@ names::::select count(1) from dem.names
 	select count(1) from dem.names	-- new
 v_all_persons::::select count(1) from dem.v_persons
 	select count(1) from dem.v_all_persons	-- new
-v_active_persons::::select count(1) from dem.v_basic_person
+v_active_persons::::select count(1) from dem.v_active_persons
 	select count(1) from dem.v_active_persons	-- new
 staff::::select count(1) from dem.staff								-- old
 	select count(1) from dem.v_staff where not person_is_deleted	-- new
@@ -212,14 +155,14 @@ waiting list view entries::::select count(1) from clin.v_waiting_list
 	select count(1) from clin.v_waiting_list
 waiting list integrity::::select((select count(1) from clin.v_waiting_list) = (select count(1) from clin.waiting_list))
 	select((select count(1) from clin.v_waiting_list) = (select count(1) from clin.waiting_list))
-messages::::select count(1) + 2 from dem.message_inbox
+messages::::select count(1) from dem.message_inbox
 	select count(1) from dem.message_inbox
 test orgs::::select count(1) from clin.test_org
 	select count(1) from clin.test_org
 branded drug component intakes::::select count(1) from clin.substance_intake where fk_drug_component is not null
 	select count(1) from clin.substance_intake where fk_drug_component is not null
-substance intakes::::select count(1) + 3 from clin.substance_intake where fk_drug_component is null
-	select count(1) from clin.substance_intake where fk_drug_component is null
+substance intakes::::select count(1) from clin.substance_intake
+	select count(1) from clin.substance_intake
 vaccines::::select count(1) from clin.vaccine
 	select count(1) from clin.vaccine
 vaccines (must have indications)::::select 0
@@ -241,14 +184,14 @@ requests on results::::select count(1) from clin.test_result where fk_request is
 clinical code links (total) - internal consistency::::select True
 	select ((select count(1) from clin.lnk_code2item_root) = (select ((select count(1) from clin.lnk_code2procedure) + (select count(1) from clin.lnk_code2rfe) + (select count(1) from clin.lnk_code2aoe) + (select count(1) from clin.lnk_code2episode) + (select count(1) from clin.lnk_code2h_issue) + (select count(1) from clin.lnk_code2narrative))))
 paperwork templates::::select count(1) from ref.paperwork_templates
-	select count(1) - 3 from ref.paperwork_templates
-automatic hints::::select count(1) + 4 from ref.auto_hint
+	select count(1) from ref.paperwork_templates
+automatic hints::::select count(1) from ref.auto_hint
 	select count(1) from ref.auto_hint
 suppressed hints::::select count(1) from clin.suppressed_hint
 	select count(1) from clin.suppressed_hint
-raw keyword expansions::::select count(1) + 1 from ref.keyword_expansion
+raw keyword expansions::::select count(1) from ref.keyword_expansion
 	select count(1) from ref.keyword_expansion
-mapped keyword expansions::::select count(1) + 1 from ref.v_keyword_expansions
+mapped keyword expansions::::select count(1) from ref.v_keyword_expansions
 	select count(1) from ref.v_keyword_expansions
 organisations::::select count(1) from dem.org
 	select count(1) from dem.org
@@ -258,7 +201,7 @@ data sources::::select count(1) from ref.data_source
 	select count(1) from ref.data_source
 bills with invoices but without VAT status::::select 0
 	select count(1) from bill.bill where (apply_vat is null) and (fk_doc is not null)
-clinical items::::select count(1) + 3 from clin.clin_root_item
+clinical items::::select count(1) from clin.clin_root_item
 	select count(1) from clin.clin_root_item
 export items::::select count(1) from clin.export_item
 	select count(1) from clin.export_item
@@ -304,7 +247,7 @@ name =
 port = 5432
 template database = template1
 super user alias = postgres
-schema base directory = ../sql/v20-v21/
+schema base directory = ../sql/v21-v22/
 schema = $schema$
 $schema$
 
diff --git a/server/doc/schema/gnumed-entire_schema.html b/server/doc/schema/gnumed-entire_schema.html
index b4a23fa..95b0a78 100644
--- a/server/doc/schema/gnumed-entire_schema.html
+++ b/server/doc/schema/gnumed-entire_schema.html
@@ -112,7 +112,7 @@
   <body>
 
     <!-- Primary Index -->
-	<p><br><br>Dumped on 2016-03-25</p>
+	<p><br><br>Dumped on 2016-04-06</p>
 <h1><a name="index">Index of database - gnumed_v21</a></h1>
 <ul>
     
diff --git a/server/pycommon/gmI18N.py b/server/pycommon/gmI18N.py
index 4aed585..0bc32eb 100644
--- a/server/pycommon/gmI18N.py
+++ b/server/pycommon/gmI18N.py
@@ -111,6 +111,7 @@ def __split_locale_into_levels():
 	system_locale_level['language'] = system_locale.split('_', 1)[0]
 
 	_log.debug('system locale levels: %s', system_locale_level)
+
 #---------------------------------------------------------------------------
 def __log_locale_settings(message=None):
 	_setlocale_categories = {}
@@ -205,6 +206,7 @@ def __log_locale_settings(message=None):
 		_log.exception('this OS does not support nl_langinfo')
 
 	_log.debug('gmI18N.get_encoding(): %s', get_encoding())
+
 #---------------------------------------------------------------------------
 def _translate_protected(term):
 	"""This wraps _().
@@ -220,24 +222,17 @@ def _translate_protected(term):
 		_log.error('translation: %s', translation)
 		return term
 
-	term_substitutes = _substitutes_regex.findall(term)
-	trans_substitutes = _substitutes_regex.findall(translation)
+	substitution_keys_in_original = set(_substitutes_regex.findall(term))
+	substitution_keys_in_translation = set(_substitutes_regex.findall(translation))
 
-	# different number of %(...)s substitutes ?
-	if len(term_substitutes) != len(trans_substitutes):
-		_log.error('count("%(...)s") mismatch, returning untranslated string')
-		_log.error('original   : %s', term)
-		_log.error('translation: %s', translation)
-		return term
-
-	# different %(...)s substitutes ?
-	if set(term_substitutes) != set(trans_substitutes):
-		_log.error('"%(...)s" name mismatch, returning untranslated string')
+	if not substitution_keys_in_translation.issubset(substitution_keys_in_original):
+		_log.error('"%(...)s" keys in translation not a subset of keys in original, returning untranslated string')
 		_log.error('original   : %s', term)
 		_log.error('translation: %s', translation)
 		return term
 
 	return translation
+
 #---------------------------------------------------------------------------
 # external API
 #---------------------------------------------------------------------------
@@ -276,6 +271,7 @@ def activate_locale():
 	__split_locale_into_levels()
 
 	return True
+
 #---------------------------------------------------------------------------
 def install_domain(domain=None, language=None, prefer_local_catalog=False):
 	"""Install a text domain suitable for the main script."""
@@ -382,6 +378,7 @@ def install_domain(domain=None, language=None, prefer_local_catalog=False):
 	dummy = gettext.NullTranslations()
 	dummy.install()
 	return True
+
 #===========================================================================
 _encoding_mismatch_already_logged = False
 _current_encoding = None
diff --git a/server/pycommon/gmTools.py b/server/pycommon/gmTools.py
index 20d7058..d1c20dc 100644
--- a/server/pycommon/gmTools.py
+++ b/server/pycommon/gmTools.py
@@ -653,7 +653,7 @@ def get_unique_filename(prefix=None, suffix=None, tmp_dir=None):
 	}
 
 	if prefix is None:
-		kwargs['prefix'] = 'gnumed-'
+		kwargs['prefix'] = 'gmd-'
 	else:
 		kwargs['prefix'] = prefix
 
diff --git a/server/sql/v20-v21/dynamic/v21-dem-region-dynamic.sql b/server/sql/v20-v21/dynamic/v21-dem-region-dynamic.sql
index 2ba244d..8053d19 100644
--- a/server/sql/v20-v21/dynamic/v21-dem-region-dynamic.sql
+++ b/server/sql/v20-v21/dynamic/v21-dem-region-dynamic.sql
@@ -331,7 +331,7 @@ from
 comment on view dem.v_region is 'denormalizes region information';
 
 
-grant select on dem.v_region to group "gm-doctors";
+grant select on dem.v_region to group "gm-public";
 
 -- --------------------------------------------------------------
 drop view if exists dem.v_urb cascade;
@@ -361,7 +361,7 @@ from
 comment on view dem.v_urb is 'denormalizes urb data';
 
 
-grant select on dem.v_urb to group "gm-doctors";
+grant select on dem.v_urb to group "gm-public";
 
 -- --------------------------------------------------------------
 drop view if exists dem.v_street cascade;
@@ -397,7 +397,7 @@ from
 comment on view dem.v_street is 'denormalizes street data';
 
 
-grant select on dem.v_street to group "gm-doctors";
+grant select on dem.v_street to group "gm-public";
 
 -- ------------------------------------------------------------
 drop view if exists dem.v_address cascade;
@@ -464,7 +464,7 @@ from
 comment on view dem.v_address is 'fully denormalizes data about addresses as entities in themselves';
 
 
-grant select on dem.v_address to group "gm-doctors";
+grant select on dem.v_address to group "gm-public";
 
 -- --------------------------------------------------------------
 drop view if exists dem.v_zip2street cascade;
@@ -498,6 +498,8 @@ create view dem.v_zip2street as
 comment on view dem.v_zip2street is
 	'list known data for streets that have a zip code';
 
+grant select on dem.v_zip2street to group "gm-public";
+
 -- --------------------------------------------------------------
 drop view if exists dem.v_uniq_zipped_urbs cascade;
 
@@ -538,7 +540,7 @@ comment on view dem.v_uniq_zipped_urbs is
 	 - have a zip code
 	 - are not referenced in table "street" with that zip code';
 
-grant select on dem.v_uniq_zipped_urbs to group "gm-doctors";
+grant select on dem.v_uniq_zipped_urbs to group "gm-public";
 
 -- --------------------------------------------------------------
 drop view if exists dem.v_zip2data;
@@ -573,6 +575,8 @@ create view dem.v_zip2data as
 comment on view dem.v_zip2data is
 	'aggregates nearly all known data per zip code';
 
+grant select on dem.v_zip2data to group "gm-public";
+
 -- --------------------------------------------------------------
 drop view if exists dem.v_zip2urb cascade;
 
@@ -599,6 +603,8 @@ create view dem.v_zip2urb as
 comment on view dem.v_zip2urb is
 	'list known data for urbs that have a zip code';
 
+grant select on dem.v_zip2urb to group "gm-public";
+
 -- --------------------------------------------------------------
 drop view if exists dem.v_basic_address cascade;
 
@@ -630,5 +636,7 @@ where
 		and
 	d_u.fk_region = d_r.pk;
 
+grant select on dem.v_basic_address to group "gm-public";
+
 -- --------------------------------------------------------------
-select gm.log_script_insertion('v21-dem-region-dynamic.sql', '21.0');
+select gm.log_script_insertion('v21-dem-region-dynamic.sql', '21.3');
diff --git a/server/sql/v20-v21/dynamic/v21-release_notes-dynamic.sql b/server/sql/v20-v21/dynamic/v21-release_notes-dynamic.sql
index bf1ca58..63f4933 100644
--- a/server/sql/v20-v21/dynamic/v21-release_notes-dynamic.sql
+++ b/server/sql/v20-v21/dynamic/v21-release_notes-dynamic.sql
@@ -17,32 +17,27 @@ INSERT INTO dem.message_inbox (
 ) VALUES (
 	(select pk from dem.staff where db_user = 'any-doc'),
 	(select pk_type from dem.v_inbox_item_type where type = 'memo' and category = 'administrative'),
-	'Release Notes for GNUmed 1.6.2 (database v21.2)',
-	'GNUmed 1.6.2 Release Notes:
+	'Release Notes for GNUmed 1.6.3 (database v21.3)',
+	'GNUmed 1.6.3 Release Notes:
 
-	1.6.2
+	1.6.3
 
-FIX: exception create consumable substance by ATC
-FIX: exception on showing files of new document
-FIX: exception on saving new document
-FIX: exception on saving substance abuse entry
-FIX: exception on attempting to apply sorting outside list column
+FIX: exception on creating invoice from bill [thanks Marc]
+FIX: faulty assumption on what %()s keys must exist in translations
+FIX: exception in expando SOAP editor when lines need wrapping [thanks Marc]
+FIX: exception on saving progress note under new episode [thanks Marc]
+FIX: exception on deleting list items [thanks Marc]
+FIX: exception on building list context menu [thanks Marc]
+FIX: exception in measurements widget on client idling w/o patient [thanks Marc]
 
-	1.6.1
+IMPROVED: add httplib2 to check-prerequisites.py [thanks Marc]
+IMPROVED: single-line formatting of addresses
+IMPROVED: enhance list context menu to selected rows
 
-FIX: gm-describe_file missing in tarball
+	21.3
 
-IMPROVED: manpages for gm-create_dicomdir/gm-create_datamatrix
-
-	21.2
-
-NEW: implement commenting out of plausibility checks
-
-IMPROVED: run all plausibility checks even if any fail
-IMPROVED: more resilience against malformed plausibility checks
-
-FIX: inaccurate dem.v_staff plausibility check [thanks Marc]
+FIX: GRANTs on demographics views [thanks Marc]
 ');
 
 -- --------------------------------------------------------------
-select gm.log_script_insertion('v21-release_notes-dynamic.sql', '21.2');
+select gm.log_script_insertion('v21-release_notes-dynamic.sql', '21.3');
diff --git a/server/sql/v20-v21/fixups/v21-dem-view_grants-fixup.sql b/server/sql/v20-v21/fixups/v21-dem-view_grants-fixup.sql
new file mode 100644
index 0000000..16ee9fc
--- /dev/null
+++ b/server/sql/v20-v21/fixups/v21-dem-view_grants-fixup.sql
@@ -0,0 +1,25 @@
+-- ==============================================================
+-- GNUmed database schema change script
+--
+-- License: GPL v2 or later
+-- Author: karsten.hilbert at gmx.net
+--
+-- ==============================================================
+\set ON_ERROR_STOP 1
+--set default_transaction_read_only to off;
+
+-- --------------------------------------------------------------
+grant select on
+	dem.v_region,
+	dem.v_urb,
+	dem.v_street,
+	dem.v_address,
+	dem.v_zip2street,
+	dem.v_uniq_zipped_urbs,
+	dem.v_zip2data,
+	dem.v_zip2urb,
+	dem.v_basic_address
+to group "gm-public";
+
+-- --------------------------------------------------------------
+select gm.log_script_insertion('v21-dem-view_grants-fixup.sql', '21.3');

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/gnumed-server.git



More information about the debian-med-commit mailing list