X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/33d579af2747e8427fab0e31625871a83cff75e9..96def4ca5bca620506a0859d48b3df54290e8202:/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..afb061705 --- /dev/null +++ b/sql/Pg-upgrade2/inventory_shippingdate_not_null.sql @@ -0,0 +1,7 @@ +-- @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 +-- @encoding: utf-8 + +UPDATE inventory SET shippingdate = itime WHERE shippingdate IS NULL; +ALTER TABLE inventory ALTER COLUMN shippingdate SET NOT NULL;