<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Add infrastructureTelecommunicationOnly and ordinalNumber fields to road occupation entities
*/
final class Version20260128140000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Add infrastructureTelecommunicationOnly to road_occupation_stage and ordinalNumber to both road_occupation_stage and road_occupation';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE road_occupation_stage ADD infrastructure_telecommunication_only BOOLEAN DEFAULT NULL');
$this->addSql('ALTER TABLE road_occupation_stage ADD ordinal_number INT DEFAULT NULL');
$this->addSql('ALTER TABLE road_occupation ADD ordinal_number INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE road_occupation_stage DROP infrastructure_telecommunication_only');
$this->addSql('ALTER TABLE road_occupation_stage DROP ordinal_number');
$this->addSql('ALTER TABLE road_occupation DROP ordinal_number');
}
}