From 60188df6a37e2a237172ad9b47ecc8731d537909 Mon Sep 17 00:00:00 2001 From: robert Date: Fri, 12 Jul 2024 12:04:28 +0200 Subject: [PATCH] feat: refs #7716 travel_setDelivered --- db/routines/vn/events/travel_setDelivered.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 db/routines/vn/events/travel_setDelivered.sql diff --git a/db/routines/vn/events/travel_setDelivered.sql b/db/routines/vn/events/travel_setDelivered.sql new file mode 100644 index 000000000..769ee9d24 --- /dev/null +++ b/db/routines/vn/events/travel_setDelivered.sql @@ -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 ; -- 2.40.1