aboutsummaryrefslogtreecommitdiffstats
path: root/core/Migrations
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-12-01 23:57:40 +0100
committerJoas Schilling <coding@schilljs.com>2021-12-01 23:57:40 +0100
commit536a812de48e15aed16fe32bb7308a49f57d05df (patch)
tree438188f6f2e9d2bdfbe9f8c86c0ed46872ca0cef /core/Migrations
parent44ecd0d1d5f77e6798c1dd08da8120ba86585758 (diff)
downloadnextcloud-server-536a812de48e15aed16fe32bb7308a49f57d05df.tar.gz
nextcloud-server-536a812de48e15aed16fe32bb7308a49f57d05df.zip
Add an index for selecting the next job
Signed-off-by: Joas Schilling <coding@schilljs.com>
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 4fa8fb3d1e9..3d97ee1de39 100644
--- a/core/Migrations/Version13000Date20170718121200.php
+++ b/core/Migrations/Version13000Date20170718121200.php
@@ -525,6 +525,7 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
]);
$table->setPrimaryKey(['id']);
$table->addIndex(['class'], 'job_class_index');
+ $table->addIndex(['last_checked', 'reserved_at'], 'job_lastcheck_reserved');
}
if (!$schema->hasTable('users')) {