db\sqlite\QueryBuilder addPrimaryKey()

addPrimaryKey() public method

Builds a SQL statement for adding a primary key constraint to an existing table.

public string addPrimaryKey ( $name, $table, $columns )
$name string

The name of the primary key constraint.

$table string

The table that the primary key constraint will be added to.

$columns string|array

Comma separated string or array of columns that the primary key will consist of.

return string

The SQL statement for adding a primary key constraint to an existing table.

throws yii\base\NotSupportedException

this is not supported by SQLite

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

Please login to continue.