getUserAgentColumn($schema)->setLength(512); } /** * @throws SchemaException */ public function down(Schema $schema): void { $this->getUserAgentColumn($schema)->setLength(256); } /** * @throws SchemaException */ private function getUserAgentColumn(Schema $schema): Column { return $schema->getTable('visits')->getColumn('user_agent'); } public function isTransactional(): bool { return $this->connection->getDatabasePlatform()->getName() !== 'mysql'; } }