yii\mongodb\Migration::dropIndexes PHP Метод

dropIndexes() публичный Метод

Drops collection indexes by name.
С версии: 2.1
public dropIndexes ( string | array $collection, string $indexes )
$collection string | array name of the collection
$indexes string wildcard for name of the indexes to be dropped.
    public function dropIndexes($collection, $indexes)
    {
        $this->beginProfile($token = "    > drop indexes '{$indexes}' on " . $this->composeCollectionLogName($collection) . ") ...");
        $this->db->getCollection($collection)->dropIndexes($indexes);
        $this->endProfile($token);
    }