aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorRasmus Fuhse <fuhse@data-quest.de>2024-12-11 09:45:57 +0000
committerRasmus Fuhse <fuhse@data-quest.de>2024-12-11 09:45:57 +0000
commitd3754cff362e0b2c5e15aeb2cd967e0a3b7a30b6 (patch)
tree626d40d7399df68c72eb2f6c1b77b7fb4bb265d7 /db
parentce1b85751aee1a321b0e66d38331889bdcb3ce8c (diff)
Resolve "Wiki in Einrichtung kann keine Startseite haben"
Closes #4992 Merge request studip/studip!3746 (cherry picked from commit bcf369f7e794a61f89c09479fff15905f02ccb08) 02a39cbb re #4992 Co-authored-by: Rasmus Fuhse <fuhse@data-quest.de>
Diffstat (limited to 'db')
-rw-r--r--db/migrations/5.5.29_biest4992_wiki_startpage.php26
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';
+ ");
+ }
+}