drop triggers first
authorChris Sharp <csharp@georgialibraries.org>
Sat, 20 Oct 2018 20:15:02 +0000 (16:15 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 30 Jan 2019 14:18:20 +0000 (09:18 -0500)
Open-ILS/src/sql/Pg/version-upgrade/3.1.5-3.2.0-upgrade-db.sql

index 6ca82fb..aadda67 100644 (file)
@@ -4861,6 +4861,11 @@ BEGIN
 END;
 $func$ LANGUAGE PLPGSQL STABLE;
 
+-- PINES has these so drop before creating
+DROP TRIGGER transit_copy_is_unique_check ON action.transit_copy;
+DROP TRIGGER hold_transit_copy_is_unique_check ON action.hold_transit_copy;
+DROP TRIGGER reservation_transit_copy_is_unique_check ON action.reservation_transit_copy;
+
 -- Apply constraint to all transit tables
 CREATE CONSTRAINT TRIGGER transit_copy_is_unique_check
     AFTER INSERT ON action.transit_copy