diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-12-21 13:02:25 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-12-21 13:03:02 +0100 |
commit | 16cc68a2fed58199486d10253995e09e966a2380 (patch) | |
tree | 420b2890296345ce0bdb25cbaaa3ff41d98c2b4a /core/Application.php | |
parent | c2d75ddc4f48ed7b195680f30d975612aed6337c (diff) | |
download | nextcloud-server-16cc68a2fed58199486d10253995e09e966a2380.tar.gz nextcloud-server-16cc68a2fed58199486d10253995e09e966a2380.zip |
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.php | 8 |
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'); + } + } } ); } |