salix/db/versions/10892-yellowGerbera/00-firstScript.sql

13 lines
367 B
MySQL
Raw Normal View History

-- Place your SQL code here
UPDATE vn.buy
SET packing = 1
WHERE packing IS NULL
OR NOT packing
ALTER TABLE vn.buy MODIFY COLUMN packing int(11) NOT NULL CHECK(packing > 0);
-- antes tenia '0=sin obligar 1=groping 2=packing'
ALTER TABLE vn.buy MODIFY COLUMN groupingMode tinyint(4) DEFAULT 0 NOT NULL COMMENT '0=sin obligar 1=grouping 2=packing';