aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2025-08-07 06:47:05 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-08-07 08:47:05 +0200
commit5444f19c09fd8d5c4757221926499a50e9654748 (patch)
treeb4494199a823c6e37283db29e9d71c74123288ec /db
parent58a43aa4175a088daa4f2d96f32874ed1a147a84 (diff)
Resolve "Wiki Seiten laden teilweise extrem lange"
Closes #5770 Merge request studip/studip!4401
Diffstat (limited to 'db')
-rw-r--r--db/migrations/5.5.33_add_index_wikipages_parentid.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/db/migrations/5.5.33_add_index_wikipages_parentid.php b/db/migrations/5.5.33_add_index_wikipages_parentid.php
new file mode 100644
index 0000000..bcbda7e
--- /dev/null
+++ b/db/migrations/5.5.33_add_index_wikipages_parentid.php
@@ -0,0 +1,20 @@
+<?php
+
+class AddIndexWikipagesParentid extends Migration
+{
+
+ public function description()
+ {
+ return 'Adds index for parent_id to wiki_pages. @see: #5770';
+ }
+
+ public function up()
+ {
+ DBManager::get()->exec("ALTER TABLE `wiki_pages` ADD INDEX parent_id (`parent_id`)");
+ }
+
+ public function down()
+ {
+ DBManager::get()->exec("ALTER TABLE `wiki_pages` DROP INDEX (`parent_id`)");
+ }
+}