2024-03-14 08:15:19 +00:00
|
|
|
SET @isTriggerDisabled := TRUE;
|
|
|
|
|
2024-02-19 08:55:54 +00:00
|
|
|
UPDATE vn.buy
|
2024-03-13 12:45:57 +00:00
|
|
|
SET packing = 1
|
|
|
|
WHERE packing IS NULL
|
|
|
|
OR packing <= 0;
|
|
|
|
|
|
|
|
UPDATE vn.itemShelving
|
|
|
|
SET packing = 1
|
|
|
|
WHERE packing IS NULL
|
|
|
|
OR NOT packing;
|
2024-02-19 08:55:54 +00:00
|
|
|
|
2024-03-14 08:15:19 +00:00
|
|
|
SET @isTriggerDisabled := FALSE;
|
|
|
|
|
2024-03-15 13:53:31 +00:00
|
|
|
ALTER TABLE vn.buy MODIFY COLUMN packing int(11) NOT NULL DEFAULT 1 CHECK(packing > 0);
|
|
|
|
ALTER TABLE vn.itemShelving MODIFY COLUMN packing int(11) NOT NULL DEFAULT 1 CHECK(packing > 0);
|
2024-02-19 08:55:54 +00:00
|
|
|
|
2024-03-13 12:45:57 +00:00
|
|
|
-- Antes tenia '0=sin obligar 1=groping 2=packing' (groping → grouping)
|
2024-02-19 08:55:54 +00:00
|
|
|
ALTER TABLE vn.buy MODIFY COLUMN groupingMode tinyint(4) DEFAULT 0 NOT NULL COMMENT '0=sin obligar 1=grouping 2=packing';
|