aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2025-03-04 07:51:32 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-03-04 07:51:32 +0000
commit53b6639939c9e5de034284655bdc50782dbc80f0 (patch)
tree2e5b3b3e39bea61b43e090bb1fab6d4778bc27a5 /db
parentfbd1b2cf0036300792f6535ae9aa5a44a028f34c (diff)
Resolve "Timeout bei großen Blubber Threads"
Closes #5313 Merge request studip/studip!4001
Diffstat (limited to 'db')
-rw-r--r--db/migrations/5.3.29_add_index_blubber_comments_mkdate.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/db/migrations/5.3.29_add_index_blubber_comments_mkdate.php b/db/migrations/5.3.29_add_index_blubber_comments_mkdate.php
new file mode 100644
index 0000000..1d7ed7a
--- /dev/null
+++ b/db/migrations/5.3.29_add_index_blubber_comments_mkdate.php
@@ -0,0 +1,20 @@
+<?php
+
+class AddIndexBlubberCommentsMkdate extends Migration
+{
+
+ public function description()
+ {
+ return 'Adds index for mkdate to blubber_comments';
+ }
+
+ public function up()
+ {
+ DBManager::get()->exec("ALTER TABLE `blubber_comments` ADD INDEX mkdate (`mkdate`)");
+ }
+
+ public function down()
+ {
+ DBManager::get()->exec("ALTER TABLE `blubber_comments` DROP INDEX (`mkdate`)");
+ }
+}