<?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 Version20231220160455 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 formation DROP FOREIGN KEY FK_404021BFE94AC507');
$this->addSql('ALTER TABLE formation DROP FOREIGN KEY FK_404021BF32C8A3DE');
$this->addSql('ALTER TABLE formation ADD CONSTRAINT FK_404021BFE94AC507 FOREIGN KEY (formationkind_id) REFERENCES formation_kind (id) ON DELETE SET NULL');
$this->addSql('ALTER TABLE formation ADD CONSTRAINT FK_404021BF32C8A3DE FOREIGN KEY (organization_id) REFERENCES organization (id) ON DELETE SET NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE formation DROP FOREIGN KEY FK_404021BFE94AC507');
$this->addSql('ALTER TABLE formation DROP FOREIGN KEY FK_404021BF32C8A3DE');
$this->addSql('ALTER TABLE formation ADD CONSTRAINT FK_404021BFE94AC507 FOREIGN KEY (formationkind_id) REFERENCES formation_kind (id)');
$this->addSql('ALTER TABLE formation ADD CONSTRAINT FK_404021BF32C8A3DE FOREIGN KEY (organization_id) REFERENCES organization (id)');
}
}