Generates the SQL definition for a column type.
public typeToSql ( string $type, integer $limit = null, integer $precision = null, integer $scale = null, boolean $unsigned = null ) : string | ||
$type | string | A column type. |
$limit | integer | Maximum column length (non decimal type only) |
$precision | integer | The number precision (decimal type only). |
$scale | integer | The number scaling (decimal columns only). |
$unsigned | boolean | Whether the column is an unsigned number (non decimal columns only). |
리턴 | string | The SQL definition. If $type is not one of the internally supported types, $type is returned unchanged. |