char() public method (available since version 2.0.8)
Creates a char column.
public yii\db\ColumnSchemaBuilder char ( $length = null ) | ||
---|---|---|
$length | integer |
Column size definition i.e. the maximum string length. This parameter will be ignored if not supported by the DBMS. |
return | yii\db\ColumnSchemaBuilder |
The column instance which can be further customized. |
Please login to continue.