X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/28ae03226a30c6f647aa8532809f8e80abaae20b..535330c547f770e2b5fa27940a50f3ad04a1ba28:/sql/Pg-upgrade2/invalid_taxkeys_2.sql

diff --git a/sql/Pg-upgrade2/invalid_taxkeys_2.sql b/sql/Pg-upgrade2/invalid_taxkeys_2.sql
index f5f72c79e..5dab783d1 100644
--- a/sql/Pg-upgrade2/invalid_taxkeys_2.sql
+++ b/sql/Pg-upgrade2/invalid_taxkeys_2.sql
@@ -1,4 +1,9 @@
 -- @tag: invalid_taxkeys_2
 -- @description: Ung&uuml;ltige Steuerschl&uuml;ssel in den Kontenrahmendefinitionen und daraus resultierende falsche Eintr&auml;ge in anderen Tabellen werden korrigiert.
 -- @depends: release_2_4_2
+SET datestyle = 'German';
+
+INSERT INTO taxkeys (chart_id, tax_id, taxkey_id, pos_ustva, startdate)
+       SELECT id, 0, 0, 0, '01.01.1970' FROM chart WHERE taxkey_id ISNULL;
+
 UPDATE chart SET taxkey_id = 0 WHERE taxkey_id ISNULL;
