diff options
| -rw-r--r-- | db/migrations/6.0.25.1_correct_type_for_config_entry.php | 14 |
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'"); + } +}; |
