<?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 Version20241003165247 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_users DROP FOREIGN KEY FK_D23740101515162A');
$this->addSql('ALTER TABLE notification_users DROP FOREIGN KEY FK_D23740109230F071');
$this->addSql('DROP INDEX IDX_D23740109230F071 ON notification_users');
$this->addSql('DROP INDEX IDX_D23740101515162A ON notification_users');
$this->addSql('ALTER TABLE notification_users DROP reminders_notification_system_id, DROP reminders_notification_email_id, DROP reminders_notification_system_is_active, DROP reminders_notification_email_is_active');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE notification_users ADD reminders_notification_system_id INT DEFAULT NULL, ADD reminders_notification_email_id INT DEFAULT NULL, ADD reminders_notification_system_is_active TINYINT(1) NOT NULL, ADD reminders_notification_email_is_active TINYINT(1) NOT NULL');
$this->addSql('ALTER TABLE notification_users ADD CONSTRAINT FK_D23740101515162A FOREIGN KEY (reminders_notification_system_id) REFERENCES notification (id)');
$this->addSql('ALTER TABLE notification_users ADD CONSTRAINT FK_D23740109230F071 FOREIGN KEY (reminders_notification_email_id) REFERENCES notification (id)');
$this->addSql('CREATE INDEX IDX_D23740109230F071 ON notification_users (reminders_notification_email_id)');
$this->addSql('CREATE INDEX IDX_D23740101515162A ON notification_users (reminders_notification_system_id)');
}
}