yii\mongodb\Migration::dropIndex PHP Method

dropIndex() public method

Drop indexes for specified column(s).
public dropIndex ( string | array $collection, string | array $columns )
$collection string | array name of the collection
$columns string | array column name or list of column names.
    public function dropIndex($collection, $columns)
    {
        $this->beginProfile($token = "    > drop index on " . $this->composeCollectionLogName($collection) . " (" . Json::encode((array) $columns) . ") ...");
        $this->db->getCollection($collection)->dropIndex($columns);
        $this->endProfile($token);
    }