13 lines
302 B
MySQL
13 lines
302 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `srt`.`buffer_afterDelete`
|
||
|
AFTER DELETE ON `buffer`
|
||
|
FOR EACH ROW
|
||
|
BEGIN
|
||
|
INSERT INTO buffer
|
||
|
SET `action` = 'delete',
|
||
|
`changedModel` = 'Buffer',
|
||
|
`changedModelId` = OLD.id,
|
||
|
`userFk` = account.myUser_getId();
|
||
|
END$$
|
||
|
DELIMITER ;
|