setSize($schema, self::NEW_SIZE); } /** * @throws SchemaException */ public function down(Schema $schema): void { $this->setSize($schema, self::OLD_SIZE); } /** * @throws SchemaException */ private function setSize(Schema $schema, int $size): void { $schema->getTable('short_urls')->getColumn('short_code')->setLength($size); } }