salix/db/versions/.archive/10216-pinkMedeola/00-firstScript.undo.sql

36 lines
1.7 KiB
SQL

ALTER TABLE edi.ekt
DROP COLUMN batchNumber;
ALTER TABLE `param` DROP INDEX `code`;
DELETE FROM edi.`param` WHERE code = 'batchNumber'
ALTER TABLE edi.ekt
MODIFY COLUMN id int(11) auto_increment NOT NULL,
MODIFY COLUMN barcode char(15) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL NULL,
MODIFY COLUMN entryYear smallint(5) unsigned NOT NULL,
MODIFY COLUMN deliveryNumber bigint(20) unsigned DEFAULT NULL NULL,
MODIFY COLUMN fec date DEFAULT NULL NULL,
MODIFY COLUMN hor time DEFAULT NULL NULL,
MODIFY COLUMN now timestamp DEFAULT current_timestamp() NULL,
MODIFY COLUMN ptj mediumint(8) unsigned DEFAULT NULL NULL,
MODIFY COLUMN `ref` int(11) NOT NULL,
MODIFY COLUMN item varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL NULL,
MODIFY COLUMN pac int(11) DEFAULT 0 NULL,
MODIFY COLUMN qty int(10) NOT NULL,
MODIFY COLUMN ori varchar(3) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'NL' NULL,
MODIFY COLUMN cat varchar(2) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL NULL,
MODIFY COLUMN agj int(11) DEFAULT NULL NULL,
MODIFY COLUMN kop int(11) DEFAULT NULL NULL,
MODIFY COLUMN ptd varchar(6) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL NULL,
MODIFY COLUMN sub mediumint(8) unsigned DEFAULT NULL NULL,
MODIFY COLUMN pro mediumint(8) unsigned NOT NULL,
MODIFY COLUMN pri double NOT NULL,
MODIFY COLUMN package int(10) unsigned DEFAULT NULL NULL,
MODIFY COLUMN auction smallint(5) unsigned DEFAULT NULL NULL,
MODIFY COLUMN klo smallint(5) unsigned DEFAULT NULL NULL,
MODIFY COLUMN k1 smallint(5) unsigned DEFAULT NULL NULL,
MODIFY COLUMN k2 smallint(5) unsigned DEFAULT NULL NULL,
MODIFY COLUMN putOrderFk bigint(20) unsigned DEFAULT NULL NULL,
MODIFY COLUMN scanned tinyint(1) DEFAULT 0 NOT NULL;