<?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 Version20231220161030 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 customer DROP FOREIGN KEY FK_81398E0984195BE0');
$this->addSql('ALTER TABLE customer DROP FOREIGN KEY FK_81398E09FE54D947');
$this->addSql('ALTER TABLE customer ADD CONSTRAINT FK_81398E0984195BE0 FOREIGN KEY (chamber_id) REFERENCES chamber (id) ON DELETE SET NULL');
$this->addSql('ALTER TABLE customer ADD CONSTRAINT FK_81398E09FE54D947 FOREIGN KEY (group_id) REFERENCES user_group (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 customer DROP FOREIGN KEY FK_81398E09FE54D947');
$this->addSql('ALTER TABLE customer DROP FOREIGN KEY FK_81398E0984195BE0');
$this->addSql('ALTER TABLE customer ADD CONSTRAINT FK_81398E09FE54D947 FOREIGN KEY (group_id) REFERENCES user_group (id)');
$this->addSql('ALTER TABLE customer ADD CONSTRAINT FK_81398E0984195BE0 FOREIGN KEY (chamber_id) REFERENCES chamber (id)');
}
}