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'); } /** * @fixme Workaround for https://github.com/doctrine/migrations/issues/1104 */ public function isTransactional(): bool { return false; } }