From 688865a6a8359bf672988381e271927257109475 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Fri, 14 Jun 2024 11:48:30 +0000 Subject: [PATCH] fixes #4292 Closes #4292 Merge request studip/studip!3107 --- db/migrations/6.0.7_add_consecutive_flag_for_consultations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrations/6.0.7_add_consecutive_flag_for_consultations.php b/db/migrations/6.0.7_add_consecutive_flag_for_consultations.php index 52b623da83e..9c45a2a8902 100644 --- a/db/migrations/6.0.7_add_consecutive_flag_for_consultations.php +++ b/db/migrations/6.0.7_add_consecutive_flag_for_consultations.php @@ -21,7 +21,7 @@ return new class extends Migration JOIN consultation_slots AS s1 ON s1.slot_id = ( SELECT slot_id - FROM consultation_slots AS s2 + FROM (SELECT slot_id, block_id, start_time FROM consultation_slots) AS s2 WHERE s2.block_id = s0.block_id AND s2.start_time < s0.start_time AND s2.slot_id != s0.slot_id -- GitLab