13 lines
327 B
SQL
13 lines
327 B
SQL
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 ;
|