13 lines
337 B
MySQL
13 lines
337 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`ticketObservation_afterDelete`
|
||
|
AFTER DELETE ON `ticketObservation`
|
||
|
FOR EACH ROW
|
||
|
BEGIN
|
||
|
INSERT INTO ticketLog
|
||
|
SET `action` = 'delete',
|
||
|
`changedModel` = 'TicketObservation',
|
||
|
`changedModelId` = OLD.id,
|
||
|
`userFk` = account.myUser_getId();
|
||
|
END$$
|
||
|
DELIMITER ;
|