From bfc2d6f73422069c16d746db10fc4d6165d99209 Mon Sep 17 00:00:00 2001 From: robert Date: Tue, 23 Jul 2024 11:38:05 +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