src/Migrations/Version20201026204311.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 Version20201026204311 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 organisation ADD region_id INT DEFAULT NULL');$this->addSql('ALTER TABLE organisation ADD CONSTRAINT FK_E6E132B498260155 FOREIGN KEY (region_id) REFERENCES federal_region (id)');$this->addSql('CREATE INDEX IDX_E6E132B498260155 ON organisation (region_id)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE organisation DROP FOREIGN KEY FK_E6E132B498260155');$this->addSql('DROP INDEX IDX_E6E132B498260155 ON organisation');$this->addSql('ALTER TABLE organisation DROP region_id');}}