db\Schema findUniqueIndexes()

findUniqueIndexes() public method

Returns all unique indexes for the given table.

Each array element is of the following structure:

[
 'IndexName1' => ['col1' [, ...]],
 'IndexName2' => ['col2' [, ...]],
]

This method should be overridden by child classes in order to support this feature because the default implementation simply throws an exception

public array findUniqueIndexes ( $table )
$table yii\db\TableSchema

The table metadata

return array

All unique indexes for the given table.

throws yii\base\NotSupportedException

if this method is called

doc_Yii
2016-10-30 16:59:38
Comments
Leave a Comment

Please login to continue.