Commit 845023fc authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #847 from tobsn/patch-1

NOT NULL order issue fixed!
parents 430eeb6d 31abcd59
...@@ -99,7 +99,7 @@ class MySQL extends Grammar { ...@@ -99,7 +99,7 @@ class MySQL extends Grammar {
*/ */
protected function unsigned(Table $table, Fluent $column) protected function unsigned(Table $table, Fluent $column)
{ {
if ($column->type == 'integer' && $column->unsigned) if ($column->type == 'integer' && ($column->unsigned || $column->increment))
{ {
return ' UNSIGNED'; return ' UNSIGNED';
} }
...@@ -260,7 +260,7 @@ class MySQL extends Grammar { ...@@ -260,7 +260,7 @@ class MySQL extends Grammar {
} }
/** /**
* Generate the SQL statement for a drop unqique key command. * Generate the SQL statement for a drop unique key command.
* *
* @param Table $table * @param Table $table
* @param Fluent $command * @param Fluent $command
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment