addSql('ALTER TABLE address ADD full_address VARCHAR(400)'); $this->addSql('DROP INDEX idx_7049f4507be036fc'); $this->addSql('DROP INDEX uniq_weight_shipment_type'); $this->addSql('DROP INDEX uniq_weight_reception_type'); $this->addSql('ALTER INDEX idx_weight_shipment RENAME TO IDX_7CD55417BE036FC'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE address DROP full_address'); $this->addSql('CREATE INDEX idx_7049f4507be036fc ON bovin_shipment (shipment_id)'); $this->addSql('CREATE UNIQUE INDEX uniq_weight_shipment_type ON weight (shipment_id, type)'); $this->addSql('CREATE UNIQUE INDEX uniq_weight_reception_type ON weight (reception_id, type)'); $this->addSql('ALTER INDEX idx_7cd55417be036fc RENAME TO idx_weight_shipment'); } }