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 0000000000000000000000000000000000000000..083ab74d346ea003633325c6c8a8bf2180d117eb --- /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'; + "); + } +}