[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. 9326986172d4db62c9c2423e6feae532c9c41cec

Evergreen Git git at git.evergreen-ils.org
Wed Oct 3 12:52:56 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  9326986172d4db62c9c2423e6feae532c9c41cec (commit)
       via  8800bd9e106d03709ad460eb177e9beb03bd386a (commit)
       via  ca739b2cdd13115f61bc4b8b397609ed2efafa1d (commit)
      from  92a09b52c5096ab85ff9151cd5e46005d6dc5337 (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 9326986172d4db62c9c2423e6feae532c9c41cec
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Wed Sep 26 23:34:32 2012 -0400

    After upgrade, list records with missing or incorrect 901$c
    
    This is a common cause of pain for upgrades. Let's try to identify the
    problem early (even if it takes forever on a site with 3 million bibs)
    and offer advice on correcting the problem if it is flagged.
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql
index 93b3588..8c88ab3 100644
--- a/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql
@@ -16207,3 +16207,22 @@ CREATE INDEX ii_poi_idx on acq.invoice_item (po_item);
 
 DROP LANGUAGE plperl;
 
+\qecho Evergreen depends heavily on each bibliographic record containing
+\qecho a 901 field with a subfield "c" to hold the record ID. The following
+\qecho query identifies the bibs that are missing 901s or whose first
+\qecho 901$c is not equal to the bib ID. This *will* take a long time in a
+\qecho big database; as the schema updates are over now, you can cancel this
+\qecho if you are in a rush.
+
+SELECT id
+  FROM biblio.record_entry
+  WHERE (
+    (XPATH('//marc:datafield[@tag="901"][1]/marc:subfield[@code="c"]/text()', marc::XML, ARRAY[ARRAY['marc', 'http://www.loc.gov/MARC21/slim']]))[1]::TEXT IS NULL
+  OR
+    (XPATH('//marc:datafield[@tag="901"][1]/marc:subfield[@code="c"]/text()', marc::XML, ARRAY[ARRAY['marc', 'http://www.loc.gov/MARC21/slim']]))[1]::TEXT <> id::TEXT)
+  AND id > -1;
+
+\qecho If there are records with missing or incorrect 901$c values, you can
+\qecho generally rely on the triggers in the biblio.record_entry table to
+\qecho populate the 901$c properly; for each offending record, run:
+\qecho   UPDATE biblio.record_entry SET marc = marc WHERE id = <id>;

commit 8800bd9e106d03709ad460eb177e9beb03bd386a
Author: Dan Scott <dscott at laurentian.ca>
Date:   Wed Sep 26 23:47:26 2012 -0400

    Set eg_version at start of 2.2 upgrade scripts
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.2.0-2.2.1-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.2.0-2.2.1-upgrade-db.sql
index c409ace..2d91539 100644
--- a/Open-ILS/src/sql/Pg/version-upgrade/2.2.0-2.2.1-upgrade-db.sql
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.2.0-2.2.1-upgrade-db.sql
@@ -1,4 +1,5 @@
 --Upgrade Script for 2.2.0 to 2.2.1
+\set eg_version '''2.2.1'''
 BEGIN;
 INSERT INTO config.upgrade_log (version, applied_to) VALUES ('2.2.1', :eg_version);
 -- Evergreen DB patch 0722.schema.acq-po-state-constraint.sql
diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.2.1-2.2.2-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.2.1-2.2.2-upgrade-db.sql
index 52696ff..8f5c539 100644
--- a/Open-ILS/src/sql/Pg/version-upgrade/2.2.1-2.2.2-upgrade-db.sql
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.2.1-2.2.2-upgrade-db.sql
@@ -1,4 +1,5 @@
 --Upgrade Script for 2.2.1 to 2.2.2
+\set eg_version '''2.2.2'''
 BEGIN;
 INSERT INTO config.upgrade_log (version, applied_to) VALUES ('2.2.2', :eg_version);
 

commit ca739b2cdd13115f61bc4b8b397609ed2efafa1d
Author: Dan Scott <dscott at laurentian.ca>
Date:   Wed Sep 26 23:25:53 2012 -0400

    Apply the 0715 update for acq settings_group
    
    We add the 'acq' config.settings_group in the seed data, and add the
    other settings groups in the 2.1-2.2 upgrade script, but need to add the
    acq settings_group to the 2.1-2.2 upgrade script.
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql
index cc9b4b1..93b3588 100644
--- a/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql
@@ -12418,6 +12418,15 @@ INSERT INTO permission.perm_list ( id, code, description )
         )
     );
 
+-- 0715.data.add_acq_config_group
+SELECT evergreen.upgrade_deps_block_check('0715', :eg_version);
+
+INSERT INTO config.settings_group (name, label) VALUES
+('acq', oils_i18n_gettext('config.settings_group.system', 'Acquisitions', 'coust', 'label'));
+
+UPDATE config.org_unit_setting_type
+    SET grp = 'acq'
+    WHERE name LIKE 'acq%';
 
 -- Evergreen DB patch 0716.coded_value_map_id_seq_fix.sql
 

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

Summary of changes:
 .../sql/Pg/version-upgrade/2.1-2.2-upgrade-db.sql  |   28 ++++++++++++++++++++
 .../Pg/version-upgrade/2.2.0-2.2.1-upgrade-db.sql  |    1 +
 .../Pg/version-upgrade/2.2.1-2.2.2-upgrade-db.sql  |    1 +
 3 files changed, 30 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list