[open-ils-commits] [GIT] Evergreen ILS branch master updated. 20a6185001d99f486040039ec73d2b6775ade4b9

Evergreen Git git at git.evergreen-ils.org
Wed Jan 4 11:44:25 EST 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, master has been updated
       via  20a6185001d99f486040039ec73d2b6775ade4b9 (commit)
      from  3706bb0514e49ba4f4db51b48cab9aae5524a895 (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 20a6185001d99f486040039ec73d2b6775ade4b9
Author: Dan Scott <dscott at laurentian.ca>
Date:   Tue Nov 22 11:55:45 2011 -0500

    Avoid updating deleted call numbers for 2.0 -> 2.1 upgrade
    
    25% of the call numbers on our production system are deleted, so
    filtering out the deleted call numbers from the update in the 2.0 -> 2.1
    upgrade saves a significant amount of time.
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql
index 7e874d8..92d7dd3 100644
--- a/Open-ILS/src/sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql
+++ b/Open-ILS/src/sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql
@@ -5669,8 +5669,6 @@ $func$ LANGUAGE plpgsql;
 -- 0505
 UPDATE metabib.facet_entry SET value = evergreen.force_unicode_normal_form(value,'NFC');
 
-UPDATE asset.call_number SET id = id;
-
 -- Update reporter.materialized_simple_record with normalized ISBN values
 -- This might not get all of them, but most ISBNs will have more than one hyphen
 DELETE FROM reporter.materialized_simple_record WHERE id IN (
@@ -8855,6 +8853,7 @@ INSERT INTO permission.perm_list ( id, code, description ) VALUES
  ( 513, 'DEBUG_CLIENT', oils_i18n_gettext( 513,
     'Allows a user to use debug functions in the staff client', 'ppl', 'description' ));
 
+UPDATE asset.call_number SET id = id WHERE deleted IS FALSE OR deleted = FALSE;
 
 -- 0529
 INSERT INTO config.org_unit_setting_type 

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

Summary of changes:
 .../sql/Pg/version-upgrade/2.0-2.1-upgrade-db.sql  |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list