10 lines
313 B
SQL
10 lines
313 B
SQL
ALTER TABLE `vn2008`.`Tickets`
|
|
ADD COLUMN `zoneFk` INT(11) NULL DEFAULT NULL AFTER `isDeleted`,
|
|
ADD INDEX `Tickets_zoneFk_fk_idx` (`zoneFk` ASC);
|
|
|
|
ALTER TABLE `vn2008`.`Tickets`
|
|
ADD CONSTRAINT `Tickets_zoneFk_fk`
|
|
FOREIGN KEY (`zoneFk`)
|
|
REFERENCES `vn`.`zone` (`id`)
|
|
ON DELETE RESTRICT
|
|
ON UPDATE CASCADE; |