X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/030c208648ddd8137d8fab33bb8b2eb87f5c080f..cfb460aac:/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%';
 
