salix/services/db/install/changes/1.0.4-cau6508/07-ticketComponentTemplate.sql

11 lines
337 B
MySQL
Raw Normal View History

2018-05-07 10:31:48 +00:00
CREATE TABLE vn.ticketComponentTemplate
SELECT * FROM vn2008.template_bionic_component;
ALTER TABLE `vn`.`ticketComponentTemplate`
CHANGE COLUMN `warehouse_id` `warehouseFk` SMALLINT(5) UNSIGNED NOT NULL ,
CHANGE COLUMN `item_id` `itemFk` INT(11) NOT NULL ,
CHANGE COLUMN `component_id` `componentFk` INT(10) UNSIGNED NOT NULL;