From bcf369f7e794a61f89c09479fff15905f02ccb08 Mon Sep 17 00:00:00 2001 From: Rasmus Fuhse <fuhse@data-quest.de> Date: Wed, 11 Dec 2024 09:45:34 +0000 Subject: [PATCH] Resolve "Wiki in Einrichtung kann keine Startseite haben" Closes #4992 Merge request studip/studip!3746 --- .../5.5.29_biest4992_wiki_startpage.php | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 db/migrations/5.5.29_biest4992_wiki_startpage.php 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 00000000000..083ab74d346 --- /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'; + "); + } +} -- GitLab