2024-02-15 12:58:12 +00:00
|
|
|
DROP TRIGGER IF EXISTS `vn2008`.`movement_label_afterUpdate`;
|
2024-02-12 06:44:40 +00:00
|
|
|
|
2024-02-23 12:29:36 +00:00
|
|
|
ALTER TABLE vn2008.movement_label DROP FOREIGN KEY movement_label_ibfk_1;
|
|
|
|
|
2024-02-21 13:07:52 +00:00
|
|
|
DROP VIEW IF EXISTS `vn`.`saleLabel`;
|
2024-02-12 06:44:40 +00:00
|
|
|
|
2024-02-21 13:07:52 +00:00
|
|
|
ALTER TABLE IF EXISTS `vn2008`.`movement_label` RENAME `vn`.`saleLabel`;
|
|
|
|
|
|
|
|
ALTER TABLE IF EXISTS `vn`.`saleLabel`
|
2024-02-12 06:44:40 +00:00
|
|
|
CHANGE COLUMN IF EXISTS `Id_movimiento` `saleFk` int(11) NOT NULL;
|
2024-02-23 12:29:36 +00:00
|
|
|
|
2024-02-23 12:45:48 +00:00
|
|
|
ALTER TABLE `vn`.`saleLabel` ADD CONSTRAINT saleLabel_sale_FK FOREIGN KEY (saleFk) REFERENCES vn.sale(id) ON DELETE CASCADE ON UPDATE CASCADE;
|