<?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 Version20250630142641 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('CREATE TABLE location_decision (id UUID NOT NULL, application_id UUID DEFAULT NULL, decision_number VARCHAR(255) DEFAULT NULL, decision_date TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_55F99CAA3E030ACD ON location_decision (application_id)');
$this->addSql('COMMENT ON COLUMN location_decision.id IS \'(DC2Type:uuid)\'');
$this->addSql('COMMENT ON COLUMN location_decision.application_id IS \'(DC2Type:uuid)\'');
$this->addSql('ALTER TABLE location_decision ADD CONSTRAINT FK_55F99CAA3E030ACD FOREIGN KEY (application_id) REFERENCES application (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
}
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 location_decision DROP CONSTRAINT FK_55F99CAA3E030ACD');
$this->addSql('DROP TABLE location_decision');
}
}