refs #5858 feat: use active event when trigger

This commit is contained in:
Javier Segarra 2024-02-12 10:28:07 +01:00
parent 337190ef6d
commit cff59d197d
3 changed files with 3 additions and 0 deletions

View File

@ -8,5 +8,6 @@ BEGIN
`changedModel` = 'zoneIncluded',
`changedModelId` = OLD.zoneFk,
`userFk` = account.myUser_getId();
UPDATE mysql.event SET status = 1 WHERE name = 'zone_getCollisions';
END$$
DELIMITER ;

View File

@ -4,5 +4,6 @@ CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`zoneIncluded_beforeIn
FOR EACH ROW
BEGIN
SET NEW.editorFk = account.myUser_getId();
UPDATE mysql.event SET status = 1 WHERE name = 'zone_getCollisions';
END$$
DELIMITER ;

View File

@ -4,5 +4,6 @@ CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`zoneIncluded_beforeUp
FOR EACH ROW
BEGIN
SET NEW.editorFk = account.myUser_getId();
UPDATE mysql.event SET status = 1 WHERE name = 'zone_getCollisions';
END$$
DELIMITER ;