X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b9d025079a0ea00235e47c249a1d00dde90cb3cb..5bc87ade7044239fa9e893b9d7cbd476dc627eea:/sql/Pg-upgrade2/payment_terms_automatic_calculation.sql

diff --git a/sql/Pg-upgrade2/payment_terms_automatic_calculation.sql b/sql/Pg-upgrade2/payment_terms_automatic_calculation.sql
new file mode 100644
index 000000000..4c0285f60
--- /dev/null
+++ b/sql/Pg-upgrade2/payment_terms_automatic_calculation.sql
@@ -0,0 +1,7 @@
+-- @tag: payment_terms_automatic_calculation
+-- @description: Zahlungsbedingungen: EinstellmÃ¶glichkeit zur automatischen/manuellen Datumsberechnung
+-- @depends: release_3_2_0
+
+ALTER TABLE payment_terms ADD COLUMN auto_calculation BOOLEAN;
+UPDATE payment_terms SET auto_calculation = TRUE;
+ALTER TABLE payment_terms ALTER COLUMN auto_calculation SET NOT NULL;
