summaryrefslogtreecommitdiffstats
path: root/core/Application.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-10-08 10:09:48 +0200
committerGitHub <noreply@github.com>2019-10-08 10:09:48 +0200
commitb7803665c1c030378511161dd51c10ac17e6cf6b (patch)
treeacd7fe67d8688252ce434244f5fd8691698be546 /core/Application.php
parent093b25bfe1fb01622e151fdb0698c30b3369157c (diff)
parent90e5850cc48abd026228233d11930a82fcf18220 (diff)
downloadnextcloud-server-b7803665c1c030378511161dd51c10ac17e6cf6b.tar.gz
nextcloud-server-b7803665c1c030378511161dd51c10ac17e6cf6b.zip
Merge pull request #17429 from nextcloud/db/add-index-on-calendar-object-props-calendar-id
Add index on calendarid for calendarobject_props table
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php
index 7949cfd6638..659a2c5d3d9 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -145,6 +145,14 @@ class Application extends App {
$subject->addHintForMissingSubject($table->getName(), 'cards_prop_abid');
}
}
+
+ if ($schema->hasTable('calendarobjects_props')) {
+ $table = $schema->getTable('calendarobjects_props');
+
+ if (!$table->hasIndex('calendarobject_calid_index')) {
+ $subject->addHintForMissingSubject($table->getName(), 'calendarobject_calid_index');
+ }
+ }
}
);