Revision 47b90954
Von Moritz Bunkus vor mehr als 9 Jahren hinzugefügt
sql/Pg-upgrade2/remove_obsolete_trigger.sql | ||
---|---|---|
1 | 1 |
-- @tag: remove_obsolete_trigger |
2 | 2 |
-- @description: Entfernt veraltete Trigger check_inventory |
3 |
-- @depends: release_3_2_0 |
|
4 |
-- @encoding: utf-8 |
|
5 | 3 |
|
6 | 4 |
-- drop triggers |
7 | 5 |
DROP TRIGGER IF EXISTS check_inventory ON oe; |
sql/Pg-upgrade2/taxzone_id_in_oe_delivery_orders.sql | ||
---|---|---|
1 | 1 |
-- @tag: taxzone_id_in_oe_delivery_orders |
2 | 2 |
-- @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 |
3 |
-- @depends: change_taxzone_id_0 |
|
3 |
-- @depends: change_taxzone_id_0 remove_obsolete_trigger
|
|
4 | 4 |
|
5 | 5 |
UPDATE oe SET taxzone_id = (SELECT id FROM tax_zones WHERE description = 'Inland') WHERE (taxzone_id = 0) OR (taxzone_id IS NULL); |
6 | 6 |
UPDATE delivery_orders SET taxzone_id = (SELECT id FROM tax_zones WHERE description = 'Inland') WHERE (taxzone_id = 0) OR (taxzone_id IS NULL); |
Auch abrufbar als: Unified diff
obsoleten Trigger auf oe früher löschen