salix/db/routines/vn/triggers/parking_afterDelete.sql

12 lines
306 B
MySQL
Raw Permalink Normal View History

2024-03-14 07:36:19 +00:00
DELIMITER $$
2024-08-20 08:06:10 +00:00
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`parking_afterDelete`
2024-03-14 07:36:19 +00:00
AFTER DELETE ON `parking`
FOR EACH ROW
BEGIN
INSERT INTO parkingLog
SET `action` = 'delete',
`changedModel` = 'Parking',
`changedModelId` = OLD.id,
`userFk` = account.myUser_getId();
END$$
DELIMITER ;