You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/settings/lib/SetupChecks/SchedulingTableSize.php
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@
14
14
useOCP\SetupCheck\SetupResult;
15
15
16
16
class SchedulingTableSize implements ISetupCheck {
17
+
constintMAX_SCHEDULING_ENTRIES = 50000;
18
+
17
19
publicfunction__construct(
18
20
privateIL10N$l10n,
19
21
privateIDBConnection$connection,
@@ -36,9 +38,9 @@ public function run(): SetupResult {
36
38
$count = $query->fetchOne();
37
39
$query->closeCursor();
38
40
39
-
if ($count > 500000) {
41
+
if ($count > self::MAX_SCHEDULING_ENTRIES) {
40
42
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')
0 commit comments