Skip to content
Snippets Groups Projects
Commit bcf369f7 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "Wiki in Einrichtung kann keine Startseite haben"

Closes #4992

Merge request studip/studip!3746
parent 47d94bb5
No related branches found
No related tags found
No related merge requests found
<?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';
");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment