aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2025-12-11 17:28:10 +0100
committerThomas Hackl <hackl@data-quest.de>2025-12-11 17:28:10 +0100
commite75bfaf30a1643da6522f42d0312810182a5918a (patch)
treecd48cfdf65718128e6fa116d6137c4bea4542b87
parent180167c9e29f0aeed21efbf28ece1b11e6ef912c (diff)
Resolve "Falscher Typ für die Konfigurationseinträge des Stundenplans"
Closes #6108 Merge request studip/studip!4643
-rw-r--r--db/migrations/6.1.2.1_change_timetable_config_entry_types.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrations/6.1.2.1_change_timetable_config_entry_types.php b/db/migrations/6.1.2.1_change_timetable_config_entry_types.php
new file mode 100644
index 0000000..4af63e5
--- /dev/null
+++ b/db/migrations/6.1.2.1_change_timetable_config_entry_types.php
@@ -0,0 +1,15 @@
+<?php
+
+final class ChangeTimetableConfigEntryTypes extends Migration
+{
+ public function description()
+ {
+ return 'Sets correct types for timetable config entries.';
+ }
+
+ public function up()
+ {
+ DBManager::get()->exec("UPDATE `config` SET `type` = 'boolean'
+ WHERE `field` IN ('TIMETABLE_COURSE_NUMBER_VISIBLE', 'TIMETABLE_COURSE_NAME_VISIBLE')");
+ }
+}