14 lines
245 B
MySQL
14 lines
245 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`expeditionState_BeforeInsert`
|
||
|
BEFORE INSERT ON `expeditionState`
|
||
|
FOR EACH ROW
|
||
|
BEGIN
|
||
|
|
||
|
SET NEW.userFk = IFNULL(NEW.userFk, account.myUser_getId());
|
||
|
|
||
|
END$$
|
||
|
DELIMITER ;
|
||
|
|
||
|
|
||
|
|