Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2019-10-07 15:39:27 +0300
committerThomas Citharel <tcit@tcit.fr>2019-10-08 11:25:56 +0300
commit68cf47e947b06eb22a22c460e0febc796e5609e2 (patch)
treeb42e3961611cb536a6d31afa68456a932b3a3978 /core/Application.php
parentb7803665c1c030378511161dd51c10ac17e6cf6b (diff)
Check and add index on principaluri for schedulingobjects table
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php
index 659a2c5d3d9..cc4d9ba990b 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -153,6 +153,13 @@ class Application extends App {
$subject->addHintForMissingSubject($table->getName(), 'calendarobject_calid_index');
}
}
+
+ if ($schema->hasTable('schedulingobjects')) {
+ $table = $schema->getTable('schedulingobjects');
+ if (!$table->hasIndex('schedulobj_principuri_index')) {
+ $subject->addHintForMissingSubject($table->getName(), 'schedulobj_principuri_index');
+ }
+ }
}
);