2024-01-29 14:13:56 +00:00
|
|
|
DELIMITER $$
|
2024-08-20 08:06:10 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`entryDms_afterDelete`
|
2024-01-29 14:13:56 +00:00
|
|
|
AFTER DELETE ON `entryDms`
|
|
|
|
FOR EACH ROW
|
|
|
|
BEGIN
|
|
|
|
INSERT INTO entryLog
|
|
|
|
SET `action` = 'delete',
|
|
|
|
`changedModel` = 'EntryDms',
|
|
|
|
`changedModelId` = OLD.entryFk,
|
|
|
|
`userFk` = account.myUser_getId();
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|