salix/db/versions/10896-salmonOrchid/14-movement_label.sql

9 lines
283 B
SQL

DROP TRIGGER IF EXISTS `vn2008`.`movement_label_afterUpdate`;
DROP VIEW IF EXISTS `vn`.`saleLabel`;
ALTER TABLE IF EXISTS `vn2008`.`movement_label` RENAME `vn`.`saleLabel`;
ALTER TABLE IF EXISTS `vn`.`saleLabel`
CHANGE COLUMN IF EXISTS `Id_movimiento` `saleFk` int(11) NOT NULL;