refactor: refs #6875 Add restriction on vn.buy.packing field not null and > 0 #2047
No reviewers
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#2047
Loading…
Reference in New Issue
No description provided.
Delete Branch "6875-packingNotNull"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -183,3 +183,3 @@
SET inv.buyingValue = b.buyingValue,
inv.freightValue = b.freightValue,
inv.packing = b.packing,
inv.packing = IFNULL(GREATEST(b.packing, 1), 1),
si baix fas açò
ALTER TABLE vn.buy MODIFY COLUMN packing int(11) NOT NULL CHECK(packing > 0);
ja no fa falta tocar esta linea perque no hi ha forma de que hi haja registres incorrectes.
@ -0,0 +5,4 @@
WHERE packing IS NULL
OR NOT packing
ALTER TABLE vn.buy MODIFY COLUMN packing int(11) NOT NULL CHECK(packing > 0);
aprofitar per a posar el camp com a unsigned, ja que hi ha negatius, els valors actuals posarlos a uno, els mes recients son de agost.
WIP: refactor(packing): refs #6875 add restriction on vn.buy.packing field not null and > 0to refactor(packing): refs #6875 add restriction on vn.buy.packing field not null and > 0refactor(packing): refs #6875 add restriction on vn.buy.packing field not null and > 0to refactor: refs #6875 Add restriction on vn.buy.packing field not null and > 0