<?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 Version20221026204524 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 internal_event_user ADD internal_event_id INT NOT NULL');
$this->addSql('ALTER TABLE internal_event_user ADD CONSTRAINT FK_48B0E5CABE556553 FOREIGN KEY (internal_event_id) REFERENCES internal_event (id)');
$this->addSql('CREATE INDEX IDX_48B0E5CABE556553 ON internal_event_user (internal_event_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE internal_event_user DROP FOREIGN KEY FK_48B0E5CABE556553');
$this->addSql('DROP INDEX IDX_48B0E5CABE556553 ON internal_event_user');
$this->addSql('ALTER TABLE internal_event_user DROP internal_event_id');
}
}