db\mssql\Schema findTableConstraints()

findTableConstraints() protected method (available since version 2.0.4)

Collects the constraint details for the given table and constraint type.

protected array findTableConstraints ( $table, $type )
$table yii\db\mssql\TableSchema
$type string

Either PRIMARY KEY or UNIQUE

return array

Each entry contains index_name and field_name

doc_Yii
2016-10-30 16:58:23
Comments
Leave a Comment

Please login to continue.