aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2025-12-11 17:21:54 +0100
committerThomas Hackl <hackl@data-quest.de>2025-12-11 17:21:54 +0100
commit180167c9e29f0aeed21efbf28ece1b11e6ef912c (patch)
tree1dd9d9a19167fe09cf7edaec5b9641a63fbcd523
parent71340b1e4d82b9fe623acbfca7f6754d998ff4d2 (diff)
Resolve "Falscher Typ des Konfigurationseintrags ENABLE_NUMBER_OF_PARTICIPANTS"
Closes #6107 Merge request studip/studip!4642
-rw-r--r--db/migrations/6.0.25.1_correct_type_for_config_entry.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrations/6.0.25.1_correct_type_for_config_entry.php b/db/migrations/6.0.25.1_correct_type_for_config_entry.php
new file mode 100644
index 0000000..1596f08
--- /dev/null
+++ b/db/migrations/6.0.25.1_correct_type_for_config_entry.php
@@ -0,0 +1,14 @@
+<?php
+return new class extends Migration
+{
+
+ public function description()
+ {
+ return 'Corrects the config entry type to something the database accepts.';
+ }
+
+ protected function up()
+ {
+ DBManager::get()->exec("UPDATE `config` SET `type` = 'boolean' WHERE `field` = 'ENABLE_NUMBER_OF_PARTICIPANTS'");
+ }
+};