refs #5858 feat: define event
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2024-02-12 10:35:12 +01:00
parent cff59d197d
commit 7f1e3c66e2
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
DELIMITER $$
CREATE EVENT IF NOT EXISTS `zone_getCollisions`
ON SCHEDULE EVERY 1 DAY
STARTS CURRENT_TIMESTAMP + INTERVAL 1 DAY
ENABLE
DO BEGIN
CALL `zone_getCollisions`();
-- Desactivar el evento después de ejecutarse
ALTER EVENT `zone_getCollisions` DISABLE;
END$$
DELIMITER;