summaryrefslogtreecommitdiffstats
path: root/core/Application.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-04-21 09:59:04 +0200
committerGitHub <noreply@github.com>2022-04-21 09:59:04 +0200
commitf4135c72f505f13891e0b05e7e4f4d2d921462b0 (patch)
treed242ace298b2829c7eaa05430c05ee8c8f3f676d /core/Application.php
parent12ed5c9ff3e9dac25b43a1ad934a97a86037000b (diff)
parent7fbd93b2ad66a1ca83ef2a2778128bf2cda06caf (diff)
downloadnextcloud-server-f4135c72f505f13891e0b05e7e4f4d2d921462b0.tar.gz
nextcloud-server-f4135c72f505f13891e0b05e7e4f4d2d921462b0.zip
Merge pull request #31047 from nextcloud/enh/preferences-index
Additional index on oc_preferences to make queries without a user filter faster
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php
index 34932cab183..443585ebc79 100644
--- a/core/Application.php
+++ b/core/Application.php
@@ -218,6 +218,13 @@ class Application extends App {
$subject->addHintForMissingSubject($table->getName(), 'direct_edit_timestamp');
}
}
+
+ if ($schema->hasTable('preferences')) {
+ $table = $schema->getTable('preferences');
+ if (!$table->hasIndex('preferences_app_key')) {
+ $subject->addHintForMissingSubject($table->getName(), 'preferences_app_key');
+ }
+ }
}
);