From: Moritz Bunkus Date: Thu, 30 Apr 2015 10:13:05 +0000 (+0200) Subject: obsoleten Trigger auf oe früher löschen X-Git-Tag: release-3.3.0beta~110^2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=47b9095415d7e0ee26d82946d08aab4a6b6c17b0;p=kivitendo-erp.git obsoleten Trigger auf oe früher löschen --- diff --git a/sql/Pg-upgrade2/remove_obsolete_trigger.sql b/sql/Pg-upgrade2/remove_obsolete_trigger.sql index db802386d..796573065 100644 --- a/sql/Pg-upgrade2/remove_obsolete_trigger.sql +++ b/sql/Pg-upgrade2/remove_obsolete_trigger.sql @@ -1,7 +1,5 @@ -- @tag: remove_obsolete_trigger -- @description: Entfernt veraltete Trigger check_inventory --- @depends: release_3_2_0 --- @encoding: utf-8 -- drop triggers DROP TRIGGER IF EXISTS check_inventory ON oe; diff --git a/sql/Pg-upgrade2/taxzone_id_in_oe_delivery_orders.sql b/sql/Pg-upgrade2/taxzone_id_in_oe_delivery_orders.sql index 00a654e5a..5c22135be 100644 --- a/sql/Pg-upgrade2/taxzone_id_in_oe_delivery_orders.sql +++ b/sql/Pg-upgrade2/taxzone_id_in_oe_delivery_orders.sql @@ -1,6 +1,6 @@ -- @tag: taxzone_id_in_oe_delivery_orders -- @description: Werte für Inland in Spalte taxzone_id in Tabellen oe und delivery_orders in Foreign Key zu tax_zones konvertieren; NULL-Werte in ap/ar verhindern; Spalten NOT NULL setzen --- @depends: change_taxzone_id_0 +-- @depends: change_taxzone_id_0 remove_obsolete_trigger UPDATE oe SET taxzone_id = (SELECT id FROM tax_zones WHERE description = 'Inland') WHERE (taxzone_id = 0) OR (taxzone_id IS NULL); UPDATE delivery_orders SET taxzone_id = (SELECT id FROM tax_zones WHERE description = 'Inland') WHERE (taxzone_id = 0) OR (taxzone_id IS NULL);