13 lines
327 B
MySQL
13 lines
327 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `account`.`mailForward_afterDelete`
|
||
|
AFTER DELETE ON `mailForward`
|
||
|
FOR EACH ROW
|
||
|
BEGIN
|
||
|
INSERT INTO userLog
|
||
|
SET `action` = 'delete',
|
||
|
`changedModel` = 'MailForward',
|
||
|
`changedModelId` = OLD.account,
|
||
|
`userFk` = account.myUser_getId();
|
||
|
END$$
|
||
|
DELIMITER ;
|