Skip to content

Commit 0e9ef5d

Browse files
author
eduardoGCordeiro
committed
Insert datatype numeric for primaryKey
1 parent e16fa52 commit 0e9ef5d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Database/Schema/SybaseGrammar.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,10 @@ protected function typeDouble(Fluent $column)
371371
*/
372372
protected function typeDecimal(Fluent $column)
373373
{
374-
return "decimal({$column->total}, {$column->places})";
374+
if($column->places == 0)
375+
return "numeric({$column->total}, {$column->places})";
376+
else
377+
return "decimal({$column->total}, {$column->places})";
375378
}
376379

377380
/**

0 commit comments

Comments
 (0)