|
@@ -99,7 +99,7 @@ class MySQL extends Grammar {
|
|
|
*/
|
|
|
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 @@ class MySQL extends Grammar {
|
|
|
{
|
|
|
if ($column->type == 'integer' and $column->increment)
|
|
|
{
|
|
|
- return ' UNSIGNED AUTO_INCREMENT PRIMARY KEY';
|
|
|
+ return ' AUTO_INCREMENT PRIMARY KEY';
|
|
|
}
|
|
|
}
|
|
|
|