From: Udo Spallek Date: Fri, 13 Jul 2007 11:44:51 +0000 (+0000) Subject: Bloeder Bug: eine zu gefräßige INSERT legt zu allen Konten taxkeys an, was aber nicht... X-Git-Tag: release-2.4.3^2~3 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3f4a45a96efc9e44bc3cd58874128dc36cc667cf;p=kivitendo-erp.git Bloeder Bug: eine zu gefräßige INSERT legt zu allen Konten taxkeys an, was aber nicht sein soll, weil dubletten erzeugt werden --- diff --git a/sql/Pg-upgrade2/USTVA_at.pl b/sql/Pg-upgrade2/USTVA_at.pl index dc2d7f378..071e41ef2 100644 --- a/sql/Pg-upgrade2/USTVA_at.pl +++ b/sql/Pg-upgrade2/USTVA_at.pl @@ -468,8 +468,8 @@ sub do_insert_taxkeys { "ALTER TABLE taxkeys DROP COLUMN pos_ustva;", "ALTER TABLE taxkeys ADD COLUMN pos_ustva text;", - "INSERT INTO taxkeys (chart_id, tax_id, taxkey_id, pos_ustva, startdate) - SELECT id, 0, 0, NULL, '01.01.1970' FROM chart WHERE charttype='A';", +# "INSERT INTO taxkeys (chart_id, tax_id, taxkey_id, pos_ustva, startdate) +# SELECT id, 0, 0, NULL, '01.01.1970' FROM chart WHERE charttype='A';", "UPDATE chart SET taxkey_id = 0 WHERE taxkey_id ISNULL;", "UPDATE taxkeys SET pos_ustva='000' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (4010, 4015, 4020, 4025, 4030, 4035, 4040, 4045, 4050, 4310, 4315, 4320, 4322, 4325, 4330, 4335, 4340, 4345, 4350, 4450, 4029, 4329));", "UPDATE taxkeys SET pos_ustva='011' WHERE chart_id IN (SELECT id FROM chart WHERE accno IN (4029, 4329));",