From: Niclas Zimmermann Date: Tue, 12 Mar 2013 10:41:05 +0000 (+0100) Subject: Alte Trigger anpassen X-Git-Tag: release-3.1.0beta1~525^2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=001ff85869942b7b69b27438afc4a4d49b9e464a;p=kivitendo-erp.git Alte Trigger anpassen Die Tabellen vendortax und customertax wurden in Commit 9f07753b entfernt. Allerdings mussten die Trigger del_vendor() und del_customer() noch angepasst werden. Behebt Bug #2201. --- diff --git a/sql/Pg-upgrade2/delete_cust_vend_tax.sql b/sql/Pg-upgrade2/delete_cust_vend_tax.sql new file mode 100644 index 000000000..386e84c43 --- /dev/null +++ b/sql/Pg-upgrade2/delete_cust_vend_tax.sql @@ -0,0 +1,17 @@ +-- @tag: delete_cust_vend_tax +-- @description: Alte Tabellen löschen +-- @depends: delete_customertax_vendortax_partstax +-- @charset: utf-8 + +CREATE OR REPLACE FUNCTION del_customer() RETURNS "trigger" AS + 'BEGIN + DELETE FROM shipto WHERE trans_id = old.id; + RETURN NULL; + END;' LANGUAGE plpgsql; + +CREATE OR REPLACE FUNCTION del_vendor() RETURNS "trigger" AS + 'BEGIN + DELETE FROM shipto WHERE trans_id = old.id; + RETURN NULL; + END;' LANGUAGE plpgsql; +