addSql('ALTER TABLE export_value ADD template_input_id INT DEFAULT NULL, ADD value_pim_id INT DEFAULT NULL, ADD collection INT DEFAULT NULL, ADD pim_input_id INT DEFAULT NULL'); $this->addSql('ALTER TABLE export_value ADD CONSTRAINT FK_2A89D2F269142AA5 FOREIGN KEY (template_input_id) REFERENCES input (id) ON DELETE CASCADE'); $this->addSql('CREATE INDEX IDX_2A89D2F269142AA5 ON export_value (template_input_id)'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE export_value DROP FOREIGN KEY FK_2A89D2F269142AA5'); $this->addSql('DROP INDEX IDX_2A89D2F269142AA5 ON export_value'); $this->addSql('ALTER TABLE export_value DROP template_input_id, DROP value_pim_id, DROP collection, DROP pim_input_id'); } }