Skip to content
Snippets Groups Projects
Unverified Commit c1beea87 authored by Till Glöggler's avatar Till Glöggler
Browse files

refs #249, improve sql statement

parent 926dc10a
No related branches found
No related tags found
No related merge requests found
...@@ -29,11 +29,10 @@ class AddSeminareSemesterTable extends Migration ...@@ -29,11 +29,10 @@ class AddSeminareSemesterTable extends Migration
FROM `seminare` FROM `seminare`
INNER JOIN `semester_data` ON (`seminare`.`start_time` < `semester_data`.`ende` INNER JOIN `semester_data` ON (`seminare`.`start_time` < `semester_data`.`ende`
AND ( AND (
(`seminare`.`start_time` >= `semester_data`.`beginn` AND `seminare`.`duration_time` = '0') `seminare`.`start_time` >= `semester_data`.`beginn` AND `seminare`.`duration_time` >= '0'
OR (`seminare`.`duration_time` > 0 AND `seminare`.`start_time` + `seminare`.`duration_time` >= `semester_data`.`beginn`)
) )
)" )
); ");
} }
public function down() public function down()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment