[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 5e57d647a3b29b296dfc5036d6a5e54ad84651df

Evergreen Git git at git.evergreen-ils.org
Thu May 3 16:52:20 EDT 2012


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_2_2 has been updated
       via  5e57d647a3b29b296dfc5036d6a5e54ad84651df (commit)
       via  dc1675b9f79091e4657fda4e41b5c5571c143ea1 (commit)
      from  aedf2bde4e4610ef0e2de01f2fbef1b827822b2a (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 5e57d647a3b29b296dfc5036d6a5e54ad84651df
Author: Dan Scott <dscott at laurentian.ca>
Date:   Thu May 3 16:44:14 2012 -0400

    Add indexes to 2.1.2 upgrade script to speed up acq search
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.1.1-2.1.2-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.1.1-2.1.2-upgrade-db.sql
index 6c891d6..5fdfd80 100644
--- a/Open-ILS/src/sql/Pg/version-upgrade/2.1.1-2.1.2-upgrade-db.sql
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.1.1-2.1.2-upgrade-db.sql
@@ -140,3 +140,15 @@ SELECT metabib.reingest_metabib_field_entries(source)
     AND char_length(value) > 9
 ;
 
+-- Add indexes to speed up acquisitions search
+INSERT INTO config.upgrade_log (version) VALUES ('0691');
+
+CREATE INDEX poi_po_idx ON acq.po_item (purchase_order);
+
+CREATE INDEX ie_inv_idx on acq.invoice_entry (invoice);
+CREATE INDEX ie_po_idx on acq.invoice_entry (purchase_order);
+CREATE INDEX ie_li_idx on acq.invoice_entry (lineitem);
+
+CREATE INDEX ii_inv_idx on acq.invoice_item (invoice);
+CREATE INDEX ii_po_idx on acq.invoice_item (purchase_order);
+CREATE INDEX ii_poi_idx on acq.invoice_item (po_item);

commit dc1675b9f79091e4657fda4e41b5c5571c143ea1
Author: Mike Rylander <mrylander at gmail.com>
Date:   Mon Mar 26 11:09:14 2012 -0400

    Add ISSN fix to the version upgrade script
    
    Signed-off-by: Mike Rylander <mrylander at gmail.com>
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.1.1-2.1.2-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.1.1-2.1.2-upgrade-db.sql
index 70777a1..6c891d6 100644
--- a/Open-ILS/src/sql/Pg/version-upgrade/2.1.1-2.1.2-upgrade-db.sql
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.1.1-2.1.2-upgrade-db.sql
@@ -116,3 +116,27 @@ BEGIN
 END;
 $func$ LANGUAGE PLPGSQL;
 
+INSERT INTO config.upgrade_log (version) VALUES ('0693');
+
+-- Delete the index normalizer that was meant to remove spaces from ISSNs
+-- but ended up breaking records with multiple ISSNs
+DELETE FROM config.metabib_field_index_norm_map WHERE id IN (
+    SELECT map.id FROM config.metabib_field_index_norm_map map
+        INNER JOIN config.metabib_field cmf ON cmf.id = map.field
+        INNER JOIN config.index_normalizer cin ON cin.id = map.norm
+    WHERE cin.func = 'replace'
+        AND cmf.field_class = 'identifier'
+        AND cmf.name = 'issn'
+        AND map.params = $$[" ",""]$$
+);
+
+-- Reindex records that have more than just a single ISSN
+-- to ensure that spaces are maintained
+SELECT metabib.reingest_metabib_field_entries(source)
+  FROM metabib.identifier_field_entry mife
+    INNER JOIN config.metabib_field cmf ON cmf.id = mife.field
+  WHERE cmf.field_class = 'identifier'
+    AND cmf.name = 'issn'
+    AND char_length(value) > 9
+;
+

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

Summary of changes:
 .../Pg/version-upgrade/2.1.1-2.1.2-upgrade-db.sql  |   36 ++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list