X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/422f2f17365ea7879c14b902c5db1e4cd7023e48..8ebb8ed8b5cb8e31f8e66c18409f736c17632116:/sql/Pg-upgrade2/defaults_add_rnd_accno_ids.sql

diff --git a/sql/Pg-upgrade2/defaults_add_rnd_accno_ids.sql b/sql/Pg-upgrade2/defaults_add_rnd_accno_ids.sql
index deee948b1..9798dcdb2 100644
--- a/sql/Pg-upgrade2/defaults_add_rnd_accno_ids.sql
+++ b/sql/Pg-upgrade2/defaults_add_rnd_accno_ids.sql
@@ -3,4 +3,8 @@
 -- @depends: release_3_1_0
 ALTER TABLE defaults ADD COLUMN rndgain_accno_id Integer;
 ALTER TABLE defaults ADD COLUMN rndloss_accno_id Integer;
+UPDATE defaults SET ( rndgain_accno_id , rndloss_accno_id ) = (
+  (SELECT id FROM chart WHERE accno = '6953' LIMIT 1),
+  (SELECT id FROM chart WHERE accno = '6943' LIMIT 1)
+) WHERE coa LIKE 'Switzerland%';
 
