From 16cc68a2fed58199486d10253995e09e966a2380 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 21 Dec 2018 13:02:25 +0100 Subject: Add twofactor_providers_uid index Fixes #12943 Signed-off-by: Roeland Jago Douma --- 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 a65f1f3fa60..94990df9356 100644 --- a/core/Application.php +++ b/core/Application.php @@ -85,6 +85,14 @@ class Application extends App { $subject->addHintForMissingSubject($table->getName(), 'fs_mtime'); } } + + if ($schema->hasTable('twofactor_providers')) { + $table = $schema->getTable('twofactor_providers'); + + if (!$table->hasIndex('twofactor_providers_uid')) { + $subject->addHintForMissingSubject($table->getName(), 'twofactor_providers_uid'); + } + } } ); } -- cgit v1.2.3