addSql('ALTER TABLE reception_bovine ALTER quantity SET DEFAULT 0'); $this->addSql('CREATE UNIQUE INDEX uniq_reception_bovine_type ON reception_bovine (reception_id, bovine_type_id)'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('DROP INDEX uniq_reception_bovine_type'); $this->addSql('ALTER TABLE reception_bovine ALTER quantity DROP DEFAULT'); } }