Added support for decimal data type in schema.

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
This commit is contained in:
Taylor Otwell
2012-03-04 14:23:59 -06:00
parent f110ccde4f
commit f3df013753
5 changed files with 57 additions and 0 deletions

View File

@@ -356,6 +356,17 @@ class SQLServer 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.
*