From: Chris Sharp Date: Fri, 2 Dec 2011 12:56:18 +0000 (-0500) Subject: adding edit to have long-running function only update non-deleted call_numbers (thank... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8f4b8b2abdc14d174285267b80e8fd279489274a;p=evergreen%2Fpines.git adding edit to have long-running function only update non-deleted call_numbers (thanks dbs!) --- diff --git a/Open-ILS/src/sql/Pg/2.0-2.1-upgrade-db.sql b/Open-ILS/src/sql/Pg/2.0-2.1-upgrade-db.sql index cb1a4d254d..426df93c10 100644 --- a/Open-ILS/src/sql/Pg/2.0-2.1-upgrade-db.sql +++ b/Open-ILS/src/sql/Pg/2.0-2.1-upgrade-db.sql @@ -5672,7 +5672,7 @@ $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 asset.call_number SET id = id WHERE deleted IS FALSE or deleted = FALSE; -- 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