<?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 Version20220816075400 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 enrollment_events DROP FOREIGN KEY FK_BD089D3D6D2DFFEE');
$this->addSql('DROP INDEX IDX_BD089D3D6D2DFFEE ON enrollment_events');
$this->addSql('ALTER TABLE enrollment_events CHANGE tuition_modality_id tuition_modality_template_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE enrollment_events ADD CONSTRAINT FK_BD089D3DB57EBE0A FOREIGN KEY (tuition_modality_template_id) REFERENCES tuition_modality_templates (id)');
$this->addSql('CREATE INDEX IDX_BD089D3DB57EBE0A ON enrollment_events (tuition_modality_template_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE enrollment_events DROP FOREIGN KEY FK_BD089D3DB57EBE0A');
$this->addSql('DROP INDEX IDX_BD089D3DB57EBE0A ON enrollment_events');
$this->addSql('ALTER TABLE enrollment_events CHANGE tuition_modality_template_id tuition_modality_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE enrollment_events ADD CONSTRAINT FK_BD089D3D6D2DFFEE FOREIGN KEY (tuition_modality_id) REFERENCES tuition_modality_templates (id)');
$this->addSql('CREATE INDEX IDX_BD089D3D6D2DFFEE ON enrollment_events (tuition_modality_id)');
}
}