diff options
| author | Philipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de> | 2025-08-07 06:47:05 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-08-07 11:07:43 +0200 |
| commit | 660d0eed2de5dba44375437bd27564b8012016d4 (patch) | |
| tree | af64d9285194155995c7557381df2af634421331 /db | |
| parent | 541d5b11f9e450b73279fba46daa36a425483ccb (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.php | 20 |
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`)"); + } +} |
