diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2022-10-12 12:42:46 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-10-12 12:42:46 +0000 |
| commit | 66308dbc88525f06cb4fb7923b354bcd5e558e42 (patch) | |
| tree | 51770ace89bd33263a3acec3cb8353c4d2054b89 /db | |
| parent | e6f9dbc683c630b2647eb59fd4b65d411172d2ca (diff) | |
change default value of configuration MY_INSTITUTES_DEFAULT to all, fixes #1656
Closes #1656
Merge request studip/studip!1067
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrations/5.1.35_set_configuration_my_institutes_default_to_all.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/db/migrations/5.1.35_set_configuration_my_institutes_default_to_all.php b/db/migrations/5.1.35_set_configuration_my_institutes_default_to_all.php new file mode 100644 index 0000000..d0a9ba4 --- /dev/null +++ b/db/migrations/5.1.35_set_configuration_my_institutes_default_to_all.php @@ -0,0 +1,24 @@ +<?php + +/** + * @author Jan-Hendrik Willms <tleilax+studip@gmail.com> + * @license GPL2 or any later version + * + * @see https://develop.studip.de/trac/ticket/7058 + * @see https://gitlab.studip.de/studip/studip/-/issues/1656 + */ +final class SetConfigurationMyInstitutesDefaultToAll extends Migration +{ + public function description() + { + return 'Changes the default value of configuration MY_INSTITUTES_DEFAULT to "all"'; + } + + protected function up() + { + $query = "UPDATE `config` + SET `value` = 'all' + WHERE `field` = 'MY_INSTITUTES_DEFAULT'"; + DBManager::get()->exec($query); + } +} |
