adding edit to have long-running function only update non-deleted call_numbers (thank...
authorChris Sharp <csharp@georgialibraries.org>
Fri, 2 Dec 2011 12:56:18 +0000 (07:56 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 2 Dec 2011 12:57:14 +0000 (07:57 -0500)
Open-ILS/src/sql/Pg/2.0-2.1-upgrade-db.sql

index cb1a4d2..426df93 100644 (file)
@@ -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