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'); } }