[open-ils-commits] [GIT] Evergreen ILS branch rel_3_0 updated. 77da2221756ceb28b17c83a7c0b206b40f117e2c

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_0 has been updated
       via  77da2221756ceb28b17c83a7c0b206b40f117e2c (commit)
      from  863b1c1ab0b4b2e4b50ba8f1dba1d54d080cc1df (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 77da2221756ceb28b17c83a7c0b206b40f117e2c
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