parts_id => { type => 'integer', not_null => 1 },
project_id => { type => 'integer' },
qty => { type => 'numeric', precision => 25, scale => 5 },
- shippingdate => { type => 'date' },
+ shippingdate => { type => 'date', not_null => 1 },
trans_id => { type => 'integer', not_null => 1 },
trans_type_id => { type => 'integer', not_null => 1 },
warehouse_id => { type => 'integer', not_null => 1 },
--- /dev/null
+-- @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;