X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/1a0025cb12fc0b04fc2befedbc2b29764a13f257..9d3ce6e8de57241dbba95498f8db127410e11752:/sql/Pg-upgrade2/transaction_description_not_null.sql

diff --git a/sql/Pg-upgrade2/transaction_description_not_null.sql b/sql/Pg-upgrade2/transaction_description_not_null.sql
new file mode 100644
index 000000000..2758d6865
--- /dev/null
+++ b/sql/Pg-upgrade2/transaction_description_not_null.sql
@@ -0,0 +1,6 @@
+-- @tag: transaction_description_not_null
+-- @description: Das Feld "transaction_description" sollte nicht NULL-Werte enthalten.
+-- @depends: transaction_description
+UPDATE ap SET transaction_description = '' WHERE transaction_description IS NULL;
+UPDATE ar SET transaction_description = '' WHERE transaction_description IS NULL;
+UPDATE oe SET transaction_description = '' WHERE transaction_description IS NULL;
