Compare commits

...

3 Commits

Author SHA1 Message Date
Robert Ferrús 2c5810fe1b Merge branch 'dev' into 7716-travel_setDelivered
gitea/salix/pipeline/pr-dev This commit looks good Details
2024-07-22 11:18:18 +00:00
Robert Ferrús 6cef9175c0 Merge branch 'dev' into 7716-travel_setDelivered
gitea/salix/pipeline/pr-dev This commit looks good Details
2024-07-19 11:55:02 +00:00
Robert Ferrús 60188df6a3 feat: refs #7716 travel_setDelivered
gitea/salix/pipeline/pr-dev This commit looks good Details
2024-07-12 12:04:28 +02:00
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `vn`.`travel_setDelivered`
ON SCHEDULE EVERY 1 DAY
STARTS '2024-07-12 00:10:00.000'
ON COMPLETION PRESERVE
ENABLE
DO BEGIN
UPDATE travel t
SET t.isDelivered = TRUE
WHERE t.shipped < util.VN_CURDATE();
END$$
DELIMITER ;