addSql('ALTER TABLE building_case DROP CONSTRAINT fk_de2cee50f6203804'); $this->addSql('DROP INDEX idx_de2cee50f6203804'); $this->addSql('ALTER TABLE building_case DROP statut_id'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE building_case ADD statut_id INT DEFAULT NULL'); $this->addSql('ALTER TABLE building_case ADD CONSTRAINT fk_de2cee50f6203804 FOREIGN KEY (statut_id) REFERENCES statut (id) NOT DEFERRABLE INITIALLY IMMEDIATE'); $this->addSql('CREATE INDEX idx_de2cee50f6203804 ON building_case (statut_id)'); } }