diff options
author | Anna Larch <anna@nextcloud.com> | 2024-06-19 15:04:53 +0200 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2024-07-25 20:16:26 +0200 |
commit | 620d58fdf1daecf5229446dc57f975f07c6dbcb9 (patch) | |
tree | a72a1e72e2a7a2a2d4cbe35e1b7f862e1bd4f4b4 /apps/settings/lib | |
parent | e827b86b0974586e4677a0bea152d2f1f9943f26 (diff) | |
download | nextcloud-server-620d58fdf1daecf5229446dc57f975f07c6dbcb9.tar.gz nextcloud-server-620d58fdf1daecf5229446dc57f975f07c6dbcb9.zip |
fix(caldav): lower scheduling table size warning
Signed-off-by: Anna Larch <anna@nextcloud.com>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r-- | apps/settings/lib/SetupChecks/SchedulingTableSize.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/settings/lib/SetupChecks/SchedulingTableSize.php b/apps/settings/lib/SetupChecks/SchedulingTableSize.php index cf629f5b12c..b23972ca7dc 100644 --- a/apps/settings/lib/SetupChecks/SchedulingTableSize.php +++ b/apps/settings/lib/SetupChecks/SchedulingTableSize.php @@ -14,6 +14,8 @@ use OCP\SetupCheck\ISetupCheck; use OCP\SetupCheck\SetupResult; class SchedulingTableSize implements ISetupCheck { + public const MAX_SCHEDULING_ENTRIES = 50000; + public function __construct( private IL10N $l10n, private IDBConnection $connection, @@ -36,9 +38,11 @@ class SchedulingTableSize implements ISetupCheck { $count = $query->fetchOne(); $query->closeCursor(); - if ($count > 500000) { + if ($count > self::MAX_SCHEDULING_ENTRIES) { return SetupResult::warning( - $this->l10n->t('You have more than 500 000 rows in the scheduling objects table. Please run the expensive repair jobs via occ maintenance:repair --include-expensive') + $this->l10n->t('You have more than %s rows in the scheduling objects table. Please run the expensive repair jobs via occ maintenance:repair --include-expensive.', [ + self::MAX_SCHEDULING_ENTRIES, + ]) ); } return SetupResult::success( |