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:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-12-21 15:02:25 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-12-21 15:03:02 +0300
commit16cc68a2fed58199486d10253995e09e966a2380 (patch)
tree420b2890296345ce0bdb25cbaaa3ff41d98c2b4a /core/Application.php
parentc2d75ddc4f48ed7b195680f30d975612aed6337c (diff)
Add twofactor_providers_uid index
Fixes #12943 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
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 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');
+ }
+ }
}
);
}