getEnvironment() == "addressdb") { $table = $this->table("Hausnummer"); $table->addIndex("rimo_type", ["name" => "idx_rimo_type"]); $table->addIndex("rimo_op_state", ["name" => "idx_rimo_op_state"]); $table->addIndex(["rimo_type", "rimo_op_state"], ["name" => "idx_combined_type_state"]); $table->update(); } } public function down(): void { if($this->getEnvironment() == "addressdb") { $table = $this->table("Hausnummer"); $table->removeIndex(["rimo_type"], ["name" => "idx_rimo_type"]); $table->removeIndex(["rimo_op_state"], ["name" => "idx_rimo_op_state"]); $table->removeIndex(["rimo_type", "rimo_op_state"], ["name" => "idx_combined_type_state"]); $table->update(); } } }