salix/db/versions/10835-brownCarnation/09-Split_lines.sql

8 lines
386 B
MySQL
Raw Normal View History

ALTER TABLE IF EXISTS `vn2008`.`Split_lines` RENAME `vn`.`splitLine`;
ALTER TABLE IF EXISTS `vn`.`splitLine`
CHANGE COLUMN IF EXISTS `Id_Split_lines` `id` int(11) NOT NULL AUTO_INCREMENT,
CHANGE COLUMN IF EXISTS `Id_Split` `splitFk` int(11) NOT NULL,
CHANGE COLUMN IF EXISTS `Id_Article` `itemFk` int(11) DEFAULT NULL,
CHANGE COLUMN IF EXISTS `Id_Compra` `buyFk` int(11) DEFAULT NULL;