Commit 0b9b102d authored by Tobsn's avatar Tobsn

NOT NULL order issue fixed!

thanks @crynobone !!!
parent e0d491cb
...@@ -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';
} }
...@@ -143,7 +143,7 @@ class MySQL extends Grammar { ...@@ -143,7 +143,7 @@ class MySQL extends Grammar {
{ {
if ($column->type == 'integer' and $column->increment) if ($column->type == 'integer' and $column->increment)
{ {
return ' UNSIGNED AUTO_INCREMENT PRIMARY KEY'; return ' AUTO_INCREMENT PRIMARY KEY';
} }
} }
......
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