<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20250808091739 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE location_decision ADD road_occupation_id UUID DEFAULT NULL');
$this->addSql('COMMENT ON COLUMN location_decision.road_occupation_id IS \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE location_decision ADD CONSTRAINT FK_55F99CAA1D88AD02 FOREIGN KEY (road_occupation_id) REFERENCES road_occupation (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
$this->addSql('CREATE INDEX IDX_55F99CAA1D88AD02 ON location_decision (road_occupation_id)');
$this->addSql('ALTER TABLE road_occupation_stage ADD ad_kind VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE road_occupation_stage ADD ad_type VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE road_occupation_stage ADD ad_mounting_structure VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE road_occupation_stage ADD ad_length DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE road_occupation_stage ADD ad_width DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE road_occupation_stage ADD ad_area DOUBLE PRECISION DEFAULT NULL');
$this->addSql('ALTER TABLE road_occupation_stage ADD ad_quantity INT DEFAULT NULL');
$this->addSql('ALTER TABLE road_occupation_stage ADD ad_lighting_type VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE road_occupation_stage ADD day_quantity INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('ALTER TABLE road_occupation_stage DROP ad_kind');
$this->addSql('ALTER TABLE road_occupation_stage DROP ad_type');
$this->addSql('ALTER TABLE road_occupation_stage DROP ad_mounting_structure');
$this->addSql('ALTER TABLE road_occupation_stage DROP ad_length');
$this->addSql('ALTER TABLE road_occupation_stage DROP ad_width');
$this->addSql('ALTER TABLE road_occupation_stage DROP ad_area');
$this->addSql('ALTER TABLE road_occupation_stage DROP ad_quantity');
$this->addSql('ALTER TABLE road_occupation_stage DROP ad_lighting_type');
$this->addSql('ALTER TABLE road_occupation_stage DROP day_quantity');
$this->addSql('ALTER TABLE location_decision DROP CONSTRAINT FK_55F99CAA1D88AD02');
$this->addSql('DROP INDEX IDX_55F99CAA1D88AD02');
$this->addSql('ALTER TABLE location_decision DROP road_occupation_id');
}
}