X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44..53593baa211863fbf66540cf1bcc36c8fb37257f:/sql/Pg-upgrade2/inventory_shippingdate_not_null.sql

diff --git a/sql/Pg-upgrade2/inventory_shippingdate_not_null.sql b/sql/Pg-upgrade2/inventory_shippingdate_not_null.sql
new file mode 100644
index 000000000..a3fa3f902
--- /dev/null
+++ b/sql/Pg-upgrade2/inventory_shippingdate_not_null.sql
@@ -0,0 +1,6 @@
+-- @tag: inventory_shippingdate_not_null
+-- @description: shippingdate not null, leeres shippingdate fÃ¼r nachtrÃ¤glich wie itime setzen
+-- @depends: release_3_4_0 inventory_fix_shippingdate_assemblies
+
+UPDATE inventory SET shippingdate = itime WHERE shippingdate IS NULL;
+ALTER TABLE inventory ALTER COLUMN shippingdate SET NOT NULL;
