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
1 changed files with 2 additions and 2 deletions

View File

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