From dd0bcd66cff617a9cf2a6d358ba453a7d07260c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Andr=C3=A9s?= Date: Tue, 4 Mar 2025 09:45:24 +0100 Subject: [PATCH] fix: comment out time adjustment logic in beforeInsert and beforeUpdate triggers --- db/routines/vn/triggers/ticket_beforeInsert.sql | 6 +++--- db/routines/vn/triggers/ticket_beforeUpdate.sql | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db/routines/vn/triggers/ticket_beforeInsert.sql b/db/routines/vn/triggers/ticket_beforeInsert.sql index 1cfd8fa48b..fa57391275 100644 --- a/db/routines/vn/triggers/ticket_beforeInsert.sql +++ b/db/routines/vn/triggers/ticket_beforeInsert.sql @@ -7,11 +7,11 @@ BEGIN SET NEW.editorFk = account.myUser_getId(); - SELECT TIME(hour) INTO vTime + /* SELECT TIME(hour) INTO vTime FROM zone WHERE id = NEW.zoneFk; -/* IF vTime IS NOT NULL THEN + IF vTime IS NOT NULL THEN SET NEW.shipped = ADDTIME(DATE(NEW.shipped), vTime); - END IF;*/ + END IF; */ END$$ DELIMITER ; diff --git a/db/routines/vn/triggers/ticket_beforeUpdate.sql b/db/routines/vn/triggers/ticket_beforeUpdate.sql index df7d1324c7..7d3b000ffd 100644 --- a/db/routines/vn/triggers/ticket_beforeUpdate.sql +++ b/db/routines/vn/triggers/ticket_beforeUpdate.sql @@ -86,6 +86,6 @@ BEGIN IF vZoneTime IS NOT NULL THEN SET NEW.shipped = ADDTIME(DATE(NEW.shipped), vZoneTime); END IF; - END IF;*/ + END IF; */ END$$ DELIMITER ;