4 lines
269 B
MySQL
4 lines
269 B
MySQL
|
ALTER TABLE `vn`.`sector` DROP COLUMN `printerFk`;
|
||
|
ALTER TABLE `vn`.`sector` ADD COLUMN `mainPrinterFk` tinyint(3) unsigned;
|
||
|
ALTER TABLE `vn`.`sector` ADD CONSTRAINT sector_FK_1 FOREIGN KEY (mainPrinterFk) REFERENCES vn.printer(id) ON DELETE CASCADE ON UPDATE CASCADE;
|