salix/services/db/install/changes/1.2-CHECK/08-ticketLog.sql

11 lines
341 B
MySQL
Raw Normal View History

2018-10-30 07:35:17 +00:00
ALTER TABLE `vn`.`ticketLog`
DROP FOREIGN KEY `ticketLog_ibfk_2`;
ALTER TABLE `vn`.`ticketLog`
CHANGE COLUMN `userFk` `userFk` INT(10) UNSIGNED NULL DEFAULT NULL ;
ALTER TABLE `vn`.`ticketLog`
ADD CONSTRAINT `ticketLog_ibfk_2`
FOREIGN KEY (`userFk`)
REFERENCES `account`.`user` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE;