getOriginalUrlColumn($schema)->setLength(2048); } /** * @throws SchemaException */ public function down(Schema $schema): void { $this->getOriginalUrlColumn($schema)->setLength(1024); } /** * @throws SchemaException */ private function getOriginalUrlColumn(Schema $schema): Column { return $schema->getTable('short_urls')->getColumn('original_url'); } /** * @fixme Workaround for https://github.com/doctrine/migrations/issues/1104 */ public function isTransactional(): bool { return false; } }