diff options
| author | Rasmus Fuhse <fuhse@data-quest.de> | 2024-12-11 09:45:34 +0000 |
|---|---|---|
| committer | Rasmus Fuhse <fuhse@data-quest.de> | 2024-12-11 09:45:34 +0000 |
| commit | bcf369f7e794a61f89c09479fff15905f02ccb08 (patch) | |
| tree | 7a814eb936f0a201c31c4a786bf5bcba3337514e /db | |
| parent | 47d94bb50fd6993d2efdda88bac2f35e0faec1e4 (diff) | |
Resolve "Wiki in Einrichtung kann keine Startseite haben"
Closes #4992
Merge request studip/studip!3746
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrations/5.5.29_biest4992_wiki_startpage.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/db/migrations/5.5.29_biest4992_wiki_startpage.php b/db/migrations/5.5.29_biest4992_wiki_startpage.php new file mode 100644 index 0000000..083ab74 --- /dev/null +++ b/db/migrations/5.5.29_biest4992_wiki_startpage.php @@ -0,0 +1,26 @@ +<?php + +class Biest4992WikiStartpage extends Migration +{ + public function description() + { + return 'Changes the range of the WIKI_STARTPAGE_ID config to match courses and institutes.'; + } + public function up() + { + DBManager::get()->exec(" + UPDATE `config` + SET `range` = 'range' + WHERE `field` = 'WIKI_STARTPAGE_ID'; + "); + } + + public function down() + { + DBManager::get()->exec(" + UPDATE `config` + SET `range` = 'course' + WHERE `field` = 'WIKI_STARTPAGE_ID'; + "); + } +} |
