diff options
author | Joas Schilling <coding@schilljs.com> | 2021-12-01 23:57:40 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-12-01 23:57:40 +0100 |
commit | 536a812de48e15aed16fe32bb7308a49f57d05df (patch) | |
tree | 438188f6f2e9d2bdfbe9f8c86c0ed46872ca0cef /core/Application.php | |
parent | 44ecd0d1d5f77e6798c1dd08da8120ba86585758 (diff) | |
download | nextcloud-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/Application.php')
-rw-r--r-- | core/Application.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Application.php b/core/Application.php index d987f7cfb17..4e36d59baac 100644 --- a/core/Application.php +++ b/core/Application.php @@ -196,6 +196,13 @@ class Application extends App { $subject->addHintForMissingSubject($table->getName(), 'properties_path_index'); } } + + if ($schema->hasTable('jobs')) { + $table = $schema->getTable('jobs'); + if (!$table->hasIndex('job_lastcheck_reserved')) { + $subject->addHintForMissingSubject($table->getName(), 'job_lastcheck_reserved'); + } + } } ); |