Skip to content

Commit ab46145

Browse files
committed
fix(caldav): lower scheduling table size warning
Signed-off-by: Anna Larch <[email protected]>
1 parent eed6216 commit ab46145

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/settings/lib/SetupChecks/SchedulingTableSize.php

Lines changed: 4 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+
const int MAX_SCHEDULING_ENTRIES = 50000;
18+
1719
public function __construct(
1820
private IL10N $l10n,
1921
private IDBConnection $connection,
@@ -36,9 +38,9 @@ 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' . self::MAX_SCHEDULING_ENTRIES . ' rows in the scheduling objects table. Please run the expensive repair jobs via occ maintenance:repair --include-expensive')
4244
);
4345
}
4446
return SetupResult::success(

0 commit comments

Comments
 (0)