salix/db/routines/vn/triggers/ticketObservation_afterDele...

13 lines
337 B
MySQL
Raw Normal View History

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 ;