[open-ils-commits] [GIT] Evergreen ILS branch tags/rel_3_0_3 updated. 43648bfc7a106dc4376b913c9d92ae5032d6ff47
Evergreen Git
git at git.evergreen-ils.org
Thu Jan 18 13:23:18 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, tags/rel_3_0_3 has been updated
via 43648bfc7a106dc4376b913c9d92ae5032d6ff47 (commit)
from 827fb8dbbe91af381f2e83b7adfe17ccdad7ff24 (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 43648bfc7a106dc4376b913c9d92ae5032d6ff47
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