[open-ils-commits] [GIT] Evergreen ILS branch rel_3_1 updated. d510170471396114e7530b81f5e6745eae57ce0c

Evergreen Git git at git.evergreen-ils.org
Thu May 3 11:05:49 EDT 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, rel_3_1 has been updated
       via  d510170471396114e7530b81f5e6745eae57ce0c (commit)
      from  0a1f4805401832b1f51b62467fc36934a5cab35e (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 d510170471396114e7530b81f5e6745eae57ce0c
Author: Ben Shum <ben at evergreener.net>
Date:   Thu May 3 10:02:50 2018 -0500

    LP#1758426: Disable triggers before recalculating bib visibility in 1085
    
    Followup to also disable triggers as part of the numbered upgrade script.
    
    Signed-off-by: Ben Shum <ben at evergreener.net>

diff --git a/Open-ILS/src/sql/Pg/upgrade/1085.function.luri_vis_cache.sql b/Open-ILS/src/sql/Pg/upgrade/1085.function.luri_vis_cache.sql
index 834202b..d62b7b0 100644
--- a/Open-ILS/src/sql/Pg/upgrade/1085.function.luri_vis_cache.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/1085.function.luri_vis_cache.sql
@@ -208,6 +208,19 @@ CREATE TRIGGER z_opac_vis_mat_view_tgr BEFORE INSERT OR UPDATE ON biblio.record_
 
 COMMIT;
 
+\echo ---------------------------------------------------------------------
+\echo Updating visibility attribute vector for biblio.record_entry
+BEGIN;
+
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  a_marcxml_is_well_formed;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  aaa_indexing_ingest_or_delete;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  audit_biblio_record_entry_update_trigger;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  b_maintain_901;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  bbb_simple_rec_trigger;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  c_maintain_control_numbers;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  fingerprint_tgr;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  z_opac_vis_mat_view_tgr;
+
 UPDATE  biblio.record_entry
   SET   vis_attr_vector = biblio.calculate_bib_visibility_attribute_set(id)
   WHERE id IN (
@@ -224,3 +237,13 @@ UPDATE  biblio.record_entry
             SELECT id FROM biblio.record_entry WHERE source IS NOT NULL
         );
 
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  a_marcxml_is_well_formed;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  aaa_indexing_ingest_or_delete;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  audit_biblio_record_entry_update_trigger;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  b_maintain_901;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  bbb_simple_rec_trigger;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  c_maintain_control_numbers;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  fingerprint_tgr;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  z_opac_vis_mat_view_tgr;
+
+COMMIT;

-----------------------------------------------------------------------

Summary of changes:
 .../Pg/upgrade/1085.function.luri_vis_cache.sql    |   23 ++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list