src/Migrations/Version20210418201844.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20210418201844 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 olymp_online_participant ADD direction_id INT NOT NULL');$this->addSql('ALTER TABLE olymp_online_participant ADD CONSTRAINT FK_EC811417AF73D997 FOREIGN KEY (direction_id) REFERENCES olymp_online_direction (id)');$this->addSql('CREATE INDEX IDX_EC811417AF73D997 ON olymp_online_participant (direction_id)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE olymp_online_participant DROP FOREIGN KEY FK_EC811417AF73D997');$this->addSql('DROP INDEX IDX_EC811417AF73D997 ON olymp_online_participant');$this->addSql('ALTER TABLE olymp_online_participant DROP direction_id');}}