diff options
author | Thomas Citharel <tcit@tcit.fr> | 2019-10-06 15:04:27 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2019-10-07 22:03:15 +0200 |
commit | 90e5850cc48abd026228233d11930a82fcf18220 (patch) | |
tree | df3d83fb368913cf4b15de0a1ba1a161d618c34f /core/Application.php | |
parent | 1843ff60fd65b3ea8496ad991d8e905d76222cdf (diff) | |
download | nextcloud-server-90e5850cc48abd026228233d11930a82fcf18220.tar.gz nextcloud-server-90e5850cc48abd026228233d11930a82fcf18220.zip |
Add index on calendarid for calendarobject_props table
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Diffstat (limited to 'core/Application.php')
-rw-r--r-- | core/Application.php | 8 |
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'); + } + } } ); |