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