2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-09-11 12:38:58 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`workerDms_afterDelete`
|
|
|
|
AFTER DELETE ON `workerDms`
|
2024-01-15 11:31:03 +00:00
|
|
|
FOR EACH ROW
|
|
|
|
BEGIN
|
|
|
|
INSERT INTO workerLog
|
|
|
|
SET `action` = 'delete',
|
2024-09-11 12:38:58 +00:00
|
|
|
`changedModel` = 'WorkerDms',
|
2024-01-15 11:31:03 +00:00
|
|
|
`changedModelId` = OLD.id,
|
|
|
|
`userFk` = account.myUser_getId();
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|