X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/dc1dd39444b4b2c4b194ca6a4f52017c8aee614e..dbb5abff8814e1281bb158a0ebe1b3068032e00d:/sql/Pg-upgrade2/custom_variables_sub_module_not_null.sql

diff --git a/sql/Pg-upgrade2/custom_variables_sub_module_not_null.sql b/sql/Pg-upgrade2/custom_variables_sub_module_not_null.sql
index 3382a58b3..37d249164 100644
--- a/sql/Pg-upgrade2/custom_variables_sub_module_not_null.sql
+++ b/sql/Pg-upgrade2/custom_variables_sub_module_not_null.sql
@@ -1,8 +1,7 @@
 -- @tag: custom_variables_sub_module_not_null
 -- @description: sub_module in custom_variables auf NOT NULL Ã¤ndern.
--- @encoding: utf-8
 -- @depends: release_2_7_0
-UPDATE custom_variables SET sub_module = '';
+UPDATE custom_variables SET sub_module = '' WHERE sub_module IS NULL;
 ALTER TABLE custom_variables ALTER COLUMN sub_module SET DEFAULT '';
 ALTER TABLE custom_variables ALTER COLUMN sub_module SET NOT NULL;
 
