summaryrefslogtreecommitdiffstats
path: root/core/Migrations
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/Migrations
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/Migrations')
-rw-r--r--core/Migrations/Version13000Date20170718121200.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php
index 02864830b2c..3e14b4af47a 100644
--- a/core/Migrations/Version13000Date20170718121200.php
+++ b/core/Migrations/Version13000Date20170718121200.php
@@ -333,6 +333,7 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
'notnull' => false,
]);
$table->setPrimaryKey(['userid', 'appid', 'configkey']);
+ $table->addIndex(['appid', 'configkey'], 'preferences_app_key');
}
if (!$schema->hasTable('properties')) {