selectedTables as $tableName) { $connection = $connectionPool->getConnectionForTable($tableName); if (strpos($connection->getServerVersion(), 'MySQL') === 0) { try { $connection->query('OPTIMIZE TABLE ' . $connection->quoteIdentifier($tableName)); } catch (DBALException $e) { throw new \RuntimeException( TableGarbageCollectionTask::class . ' failed for: ' . $tableName . ': ' . $e->getPrevious()->getMessage(), 1441390263 ); } } } return true; } /** * Output the selected tables * * @return string */ public function getAdditionalInformation() { return implode(', ', $this->selectedTables); } }