13 lines
304 B
SQL
13 lines
304 B
SQL
DELIMITER $$
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`worker_afterDelete`
|
|
AFTER DELETE ON `worker`
|
|
FOR EACH ROW
|
|
BEGIN
|
|
INSERT INTO workerLog
|
|
SET `action` = 'delete',
|
|
`changedModel` = 'Worker',
|
|
`changedModelId` = OLD.id,
|
|
`userFk` = account.myUser_getId();
|
|
END$$
|
|
DELIMITER ;
|