From: Chris Sharp Date: Sat, 20 Oct 2018 20:15:02 +0000 (-0400) Subject: drop triggers first X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e4bd6913475985d6e482b97514726bf33a13a173;p=evergreen%2Fpines.git drop triggers first --- diff --git a/Open-ILS/src/sql/Pg/version-upgrade/3.1.5-3.2.0-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/3.1.5-3.2.0-upgrade-db.sql index 6ca82fb70d..aadda67de9 100644 --- a/Open-ILS/src/sql/Pg/version-upgrade/3.1.5-3.2.0-upgrade-db.sql +++ b/Open-ILS/src/sql/Pg/version-upgrade/3.1.5-3.2.0-upgrade-db.sql @@ -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