parent
e0d491cb15
commit
0b9b102dc7
|
@ -99,7 +99,7 @@ protected function columns(Table $table)
|
|||
*/
|
||||
protected function unsigned(Table $table, Fluent $column)
|
||||
{
|
||||
if ($column->type == 'integer' && $column->unsigned)
|
||||
if ($column->type == 'integer' && ($column->unsigned || $column->increment))
|
||||
{
|
||||
return ' UNSIGNED';
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ protected function incrementer(Table $table, Fluent $column)
|
|||
{
|
||||
if ($column->type == 'integer' and $column->increment)
|
||||
{
|
||||
return ' UNSIGNED AUTO_INCREMENT PRIMARY KEY';
|
||||
return ' AUTO_INCREMENT PRIMARY KEY';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue