addSql('ALTER TABLE client CHANGE og_live_id subnet_id INT DEFAULT NULL'); $this->addSql('ALTER TABLE client ADD CONSTRAINT FK_C7440455C9CF9478 FOREIGN KEY (subnet_id) REFERENCES subnet (id)'); $this->addSql('CREATE INDEX IDX_C7440455C9CF9478 ON client (subnet_id)'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE client DROP FOREIGN KEY FK_C7440455C9CF9478'); $this->addSql('DROP INDEX IDX_C7440455C9CF9478 ON client'); $this->addSql('ALTER TABLE client CHANGE subnet_id og_live_id INT DEFAULT NULL'); } }