[open-ils-commits] [GIT] Evergreen ILS branch master updated. af4dc462e4f1212dc176a47de3d0074df4614d12
Evergreen Git
git at git.evergreen-ils.org
Thu Jan 18 13:22:22 EST 2018
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via af4dc462e4f1212dc176a47de3d0074df4614d12 (commit)
from 4808f1ad1a40f90139676963044c6f8c25b8aa75 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit af4dc462e4f1212dc176a47de3d0074df4614d12
Author: Dan Wells <dbw2 at calvin.edu>
Date: Thu Jan 18 13:20:49 2018 -0500
Adjust COMMIT placement in 3.0.3 upgrade script
This moves the visibility update outside of the transaction to match
the statements made in the release notes.
Signed-off-by: Dan Wells <dbw2 at calvin.edu>
diff --git a/Open-ILS/src/sql/Pg/version-upgrade/3.0.2-3.0.3-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/3.0.2-3.0.3-upgrade-db.sql
index 9936706..74a7c01 100644
--- a/Open-ILS/src/sql/Pg/version-upgrade/3.0.2-3.0.3-upgrade-db.sql
+++ b/Open-ILS/src/sql/Pg/version-upgrade/3.0.2-3.0.3-upgrade-db.sql
@@ -210,23 +210,6 @@ CREATE TRIGGER z_opac_vis_mat_view_tgr AFTER INSERT OR UPDATE OR DELETE ON asset
CREATE TRIGGER z_opac_vis_mat_view_tgr BEFORE INSERT OR UPDATE ON biblio.record_entry FOR EACH ROW EXECUTE PROCEDURE asset.cache_copy_visibility();
-UPDATE biblio.record_entry
- SET vis_attr_vector = biblio.calculate_bib_visibility_attribute_set(id)
- WHERE id IN (
- SELECT DISTINCT cn.record
- FROM asset.call_number cn
- WHERE NOT cn.deleted
- AND cn.label = '##URI##'
- AND EXISTS (
- SELECT 1
- FROM asset.uri_call_number_map m
- WHERE m.call_number = cn.id
- )
- UNION
- SELECT id FROM biblio.record_entry WHERE source IS NOT NULL
- );
-
-
SELECT evergreen.upgrade_deps_block_check('1086', :eg_version);
CREATE OR REPLACE FUNCTION asset.location_group_default () RETURNS TEXT AS $f$
@@ -289,3 +272,20 @@ $f$ LANGUAGE PLPGSQL STABLE ROWS 1;
COMMIT;
+
+
+UPDATE biblio.record_entry
+ SET vis_attr_vector = biblio.calculate_bib_visibility_attribute_set(id)
+ WHERE id IN (
+ SELECT DISTINCT cn.record
+ FROM asset.call_number cn
+ WHERE NOT cn.deleted
+ AND cn.label = '##URI##'
+ AND EXISTS (
+ SELECT 1
+ FROM asset.uri_call_number_map m
+ WHERE m.call_number = cn.id
+ )
+ UNION
+ SELECT id FROM biblio.record_entry WHERE source IS NOT NULL
+ );
-----------------------------------------------------------------------
Summary of changes:
.../Pg/version-upgrade/3.0.2-3.0.3-upgrade-db.sql | 34 ++++++++++----------
1 files changed, 17 insertions(+), 17 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list