11 lines
333 B
MySQL
11 lines
333 B
MySQL
|
ALTER TABLE `vn`.`clientLog`
|
||
|
DROP FOREIGN KEY `clientLog_ibfk_2`;
|
||
|
ALTER TABLE `vn`.`clientLog`
|
||
|
CHANGE COLUMN `userFk` `userFk` INT(10) UNSIGNED NULL DEFAULT NULL ;
|
||
|
ALTER TABLE `vn`.`clientLog`
|
||
|
ADD CONSTRAINT `clientLog_ibfk_2`
|
||
|
FOREIGN KEY (`userFk`)
|
||
|
REFERENCES `account`.`user` (`id`)
|
||
|
ON DELETE CASCADE
|
||
|
ON UPDATE CASCADE;
|