<?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 Version20250708145156 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 abstract_payment ADD privatisation_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE abstract_payment ADD CONSTRAINT FK_CF9FE29DCE4BE7FC FOREIGN KEY (privatisation_id) REFERENCES privatisation (id)');
$this->addSql('CREATE INDEX IDX_CF9FE29DCE4BE7FC ON abstract_payment (privatisation_id)');
$this->addSql('ALTER TABLE privatisation ADD reste_apayer DOUBLE PRECISION DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE abstract_payment DROP FOREIGN KEY FK_CF9FE29DCE4BE7FC');
$this->addSql('DROP INDEX IDX_CF9FE29DCE4BE7FC ON abstract_payment');
$this->addSql('ALTER TABLE abstract_payment DROP privatisation_id');
$this->addSql('ALTER TABLE privatisation DROP reste_apayer');
}
}