NOT NULL order issue fixed!

thanks @crynobone !!!
This commit is contained in:
Tobsn
2012-06-22 08:50:09 -07:00
parent e0d491cb15
commit 0b9b102dc7

View File

@@ -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';
}
}