db\Schema createColumnSchemaBuilder()

createColumnSchemaBuilder() public method (available since version 2.0.6)

Create a column schema builder instance giving the type and value precision.

This method may be overridden by child classes to create a DBMS-specific column schema builder.

public yii\db\ColumnSchemaBuilder createColumnSchemaBuilder ( $type, $length = null )
$type string

Type of the column. See yii\db\ColumnSchemaBuilder::$type.

$length integer|string|array

Length or precision of the column. See yii\db\ColumnSchemaBuilder::$length.

return yii\db\ColumnSchemaBuilder

Column schema builder instance

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

Please login to continue.