addSql('ALTER TABLE network_settings ADD pxe_template_id INT DEFAULT NULL'); $this->addSql('ALTER TABLE network_settings ADD CONSTRAINT FK_48869B543BD7665C FOREIGN KEY (pxe_template_id) REFERENCES pxe_template (id)'); $this->addSql('CREATE INDEX IDX_48869B543BD7665C ON network_settings (pxe_template_id)'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE network_settings DROP FOREIGN KEY FK_48869B543BD7665C'); $this->addSql('DROP INDEX IDX_48869B543BD7665C ON network_settings'); $this->addSql('ALTER TABLE network_settings DROP pxe_template_id'); } }