<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260811160000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Allow nullable stage_id on road_occupation_stage_purpose_fee';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE road_occupation_stage_purpose_fee ALTER COLUMN stage_id DROP NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE road_occupation_stage_purpose_fee ALTER COLUMN stage_id SET NOT NULL');
}
}