l10n->t('Scheduling objects table size'); } public function getCategory(): string { return 'database'; } public function run(): SetupResult { $qb = $this->connection->getQueryBuilder(); $qb->select($qb->func()->count('id')) ->from('schedulingobjects'); $query = $qb->executeQuery(); $count = $query->fetchOne(); $query->closeCursor(); if ($count > self::MAX_SCHEDULING_ENTRIES) { return SetupResult::warning( $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( $this->l10n->t('Scheduling objects table size is within acceptable range.') ); } }