<?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 Version20220616070836 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 cancel_event_application ADD new_specialist_id INT DEFAULT NULL AFTER specialist_id');
$this->addSql('ALTER TABLE cancel_event_application ADD CONSTRAINT FK_57A62402090EEF1 FOREIGN KEY (new_specialist_id) REFERENCES specialist (id)');
$this->addSql('CREATE INDEX IDX_57A62402090EEF1 ON cancel_event_application (new_specialist_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE cancel_event_application DROP FOREIGN KEY FK_57A62402090EEF1');
$this->addSql('DROP INDEX IDX_57A62402090EEF1 ON cancel_event_application');
$this->addSql('ALTER TABLE cancel_event_application DROP new_specialist_id');
}
}