dropIndex() public method
Drop indexes for specified column(s).
| public boolean dropIndex ( $columns ) | ||
|---|---|---|
| $columns | string|array |
Column name or list of column names. If array is given, each element in the array has as key the field name, and as value either 1 for ascending sort, or -1 for descending sort. Use value 'text' to specify text index. You can specify field using native numeric key with the field name as a value, in this case ascending sort will be used. For example: [
'name',
'status' => -1,
'description' => 'text',
]
|
| return | boolean |
Whether the operation successful. |
| throws | yii\mongodb\Exception |
on failure. |
Please login to continue.