Skip to content

Commit 2201bce

Browse files
committed
fix(caldav): lower scheduling table size warning
Signed-off-by: Anna Larch <anna@nextcloud.com>
1 parent 4362ed5 commit 2201bce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

apps/settings/lib/SetupChecks/SchedulingTableSize.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
use OCP\SetupCheck\SetupResult;
1515

1616
class SchedulingTableSize implements ISetupCheck {
17+
public const MAX_SCHEDULING_ENTRIES = 50000;
18+
1719
public function __construct(
1820
private IL10N $l10n,
1921
private IDBConnection $connection,
@@ -36,9 +38,11 @@ public function run(): SetupResult {
3638
$count = $query->fetchOne();
3739
$query->closeCursor();
3840

39-
if ($count > 500000) {
41+
if ($count > self::MAX_SCHEDULING_ENTRIES) {
4042
return SetupResult::warning(
41-
$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')
43+
$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.', [
44+
self::MAX_SCHEDULING_ENTRIES,
45+
])
4246
);
4347
}
4448
return SetupResult::success(

0 commit comments

Comments
 (0)