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