<?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 Version20240124113057 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 notification_list ADD notification_system_type_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE notification_list ADD CONSTRAINT FK_FCF4B322CBD138DE FOREIGN KEY (notification_system_type_id) REFERENCES notification_type (id)');
$this->addSql('CREATE INDEX IDX_FCF4B322CBD138DE ON notification_list (notification_system_type_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE notification_list DROP FOREIGN KEY FK_FCF4B322CBD138DE');
$this->addSql('DROP INDEX IDX_FCF4B322CBD138DE ON notification_list');
$this->addSql('ALTER TABLE notification_list DROP notification_system_type_id');
}
}