Revision 96def4ca
Von Kivitendo Admin vor fast 8 Jahren hinzugefügt
SL/DB/MetaSetup/Inventory.pm | ||
---|---|---|
23 | 23 |
parts_id => { type => 'integer', not_null => 1 }, |
24 | 24 |
project_id => { type => 'integer' }, |
25 | 25 |
qty => { type => 'numeric', precision => 25, scale => 5 }, |
26 |
shippingdate => { type => 'date' }, |
|
26 |
shippingdate => { type => 'date', not_null => 1 },
|
|
27 | 27 |
trans_id => { type => 'integer', not_null => 1 }, |
28 | 28 |
trans_type_id => { type => 'integer', not_null => 1 }, |
29 | 29 |
warehouse_id => { type => 'integer', not_null => 1 }, |
sql/Pg-upgrade2/inventory_shippingdate_not_null.sql | ||
---|---|---|
1 |
-- @tag: inventory_shippingdate_not_null |
|
2 |
-- @description: shippingdate not null, leeres shippingdate für nachträglich wie itime setzen |
|
3 |
-- @depends: release_3_4_0 inventory_fix_shippingdate_assemblies |
|
4 |
-- @encoding: utf-8 |
|
5 |
|
|
6 |
UPDATE inventory SET shippingdate = itime WHERE shippingdate IS NULL; |
|
7 |
ALTER TABLE inventory ALTER COLUMN shippingdate SET NOT NULL; |
Auch abrufbar als: Unified diff
Inventory: shippingdate darf nicht leer sein
Nachtrag zu Commit 8fd886849e68f