Added support for decimal data type in schema.
Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
This commit is contained in:
@@ -337,6 +337,17 @@ class MySQL extends Grammar {
|
||||
return 'FLOAT';
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate the data-type definintion for a decimal.
|
||||
*
|
||||
* @param Fluent $column
|
||||
* @return string
|
||||
*/
|
||||
protected function type_decimal(Fluent $column)
|
||||
{
|
||||
return "DECIMAL({$column->precision}, {$column->scale})";
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate the data-type definition for a boolean.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user