diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-02-07 11:25:27 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-02-07 11:25:27 +0300 |
commit | 415294e34591b48c598bf38da33a5ad7b40acf7c (patch) | |
tree | 31eb98ea615beb134ce5079d069e08e00c8c09c8 /core/Application.php | |
parent | 26df2c596b4851624afa1ef7534a3a1fbb89dfcf (diff) |
Add index for direct editing cleanup job
Signed-off-by: Julius Härtl <jus@bitgrid.net>
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 0f363f8c699..545588ab208 100644 --- a/core/Application.php +++ b/core/Application.php @@ -206,6 +206,13 @@ class Application extends App { $subject->addHintForMissingSubject($table->getName(), 'job_lastcheck_reserved'); } } + + if ($schema->hasTable('direct_edit')) { + $table = $schema->getTable('direct_edit'); + if (!$table->hasIndex('direct_edit_timestamp')) { + $subject->addHintForMissingSubject($table->getName(), 'direct_edit_timestamp'); + } + } } ); |