__construct() public method
Create a column schema builder instance giving the type and value precision.
public void __construct ( $type, $length = null, $db = null, $config = [] ) | ||
---|---|---|
$type | string |
Type of the column. See $type. |
$length | integer|string|array |
Length or precision of the column. See $length. |
$db | yii\db\Connection |
The current database connection. See $db. |
$config | array |
Name-value pairs that will be used to initialize the object properties |
Please login to continue.