salix/db/versions/.archive/10195-redPhormium/00-firstScript.sql

24 lines
887 B
MySQL
Raw Permalink Normal View History

CREATE TABLE `vn`.`itemCleanConfig` (
`id` int(11) NOT NULL,
`step` int(11) NOT NULL COMMENT 'Indica los items que procesa en cada ciclo',
`quantity` int(11) NOT NULL COMMENT 'Indica el número de items que va a procesar',
`isStop` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
INSERT INTO vn.itemCleanConfig (id,step,quantity,isStop)
VALUES (1,500,100000,0);
CREATE TABLE vn.itemCleanCount (
id int(11) auto_increment NOT NULL,
itemFrom int(11) NULL COMMENT 'Indica el item por donde ha empezado',
itemDeleted int(11) NULL COMMENT 'Indica la cantidad de items que ha eliminado',
created TIMESTAMP DEFAULT current_timestamp() NULL,
PRIMARY KEY (id)
)
ENGINE=InnoDB
DEFAULT CHARSET=utf8
COLLATE=utf8_unicode_ci;
INSERT INTO bs.nightTask (`order`,`schema`,`procedure`)
VALUES (1008,'vn','item_cleanLauncher');