[open-ils-commits] r15340 - trunk/Open-ILS/src/sql/Pg/upgrade (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jan 19 12:02:16 EST 2010
Author: erickson
Date: 2010-01-19 12:02:13 -0500 (Tue, 19 Jan 2010)
New Revision: 15340
Modified:
trunk/Open-ILS/src/sql/Pg/upgrade/0136.schema.in-db-ingest.sql
Log:
move the removal of an optional trigger outside the transaction so it won't fail and roll back the transaction when the trigger is not present
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0136.schema.in-db-ingest.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0136.schema.in-db-ingest.sql 2010-01-19 16:30:08 UTC (rev 15339)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0136.schema.in-db-ingest.sql 2010-01-19 17:02:13 UTC (rev 15340)
@@ -357,9 +357,6 @@
END;
$func$ LANGUAGE PLPGSQL;
--- Ingest triggers
-DROP TRIGGER zzz_update_materialized_simple_rec_delete_tgr ON biblio.record_entry;
-
CREATE OR REPLACE FUNCTION reporter.simple_rec_trigger () RETURNS TRIGGER AS $func$
BEGIN
IF TG_OP = 'DELETE' THEN
@@ -377,3 +374,8 @@
CREATE TRIGGER bbb_simple_rec_trigger AFTER INSERT OR UPDATE ON biblio.record_entry FOR EACH ROW EXECUTE PROCEDURE reporter.simple_rec_trigger ();
COMMIT;
+
+-- Ingest triggers. Not installed on all systems. Delete outside the transaction
+DROP TRIGGER zzz_update_materialized_simple_rec_delete_tgr ON biblio.record_entry;
+
+
More information about the open-ils-commits
mailing list