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