[open-ils-commits] r15880 - branches/rel_1_6_0/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Mar 17 15:14:44 EDT 2010
Author: miker
Date: 2010-03-17 15:14:39 -0400 (Wed, 17 Mar 2010)
New Revision: 15880
Modified:
branches/rel_1_6_0/Open-ILS/src/sql/Pg/1.6.0.3-1.6.0.4-upgrade-db.sql
Log:
upgrade scrip version of r15879: delete the metarecord link for "deleted" records
Modified: branches/rel_1_6_0/Open-ILS/src/sql/Pg/1.6.0.3-1.6.0.4-upgrade-db.sql
===================================================================
--- branches/rel_1_6_0/Open-ILS/src/sql/Pg/1.6.0.3-1.6.0.4-upgrade-db.sql 2010-03-17 19:14:07 UTC (rev 15879)
+++ branches/rel_1_6_0/Open-ILS/src/sql/Pg/1.6.0.3-1.6.0.4-upgrade-db.sql 2010-03-17 19:14:39 UTC (rev 15880)
@@ -20,6 +20,9 @@
INSERT INTO config.upgrade_log(version) VALUES ('1.6.0.4');
+-- remove the metarecord link for "deleted" records
+CREATE OR REPLACE RULE protect_bib_rec_delete AS ON DELETE TO biblio.record_entry DO INSTEAD (UPDATE biblio.record_entry SET deleted = TRUE WHERE OLD.id = biblio.record_entry.id; DELETE FROM metabib.metarecord_source_map WHERE source = OLD.id);
+
-- Match ingest fixes for leading / trailing whitespace on ISSNs and date ranges
UPDATE metabib.real_full_rec
SET value = TRIM(value)
More information about the open-ils-commits
mailing list