From 90e5850cc48abd026228233d11930a82fcf18220 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 6 Oct 2019 15:04:27 +0200 Subject: Add index on calendarid for calendarobject_props table Signed-off-by: Thomas Citharel --- core/Application.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/Application.php') 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'); + } + } } ); -- cgit v1.2.3