public dropIndexes ( string $indexes ) : integer | ||
$indexes | string | wildcard for name of the indexes to be dropped. You can use `*` to drop all indexes. |
return | integer | count of dropped indexes. |
public function dropIndexes($indexes)
{
$result = $this->database->createCommand()->dropIndexes($this->name, $indexes);
return $result['nIndexesWas'];
}