<?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 Version20221010161709 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 notifications_service DROP FOREIGN KEY FK_A40032BD33663AF7');
$this->addSql('DROP INDEX IDX_A40032BD33663AF7 ON notifications_service');
$this->addSql('ALTER TABLE notifications_service DROP service_status_id, DROP read_date');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE notifications_service ADD service_status_id INT NOT NULL, ADD read_date DATETIME DEFAULT NULL');
$this->addSql('ALTER TABLE notifications_service ADD CONSTRAINT FK_A40032BD33663AF7 FOREIGN KEY (service_status_id) REFERENCES service_status (id)');
$this->addSql('CREATE INDEX IDX_A40032BD33663AF7 ON notifications_service (service_status_id)');
}
}