Browse Source

Merge pull request #847 from tobsn/patch-1

NOT NULL order issue fixed!
Taylor Otwell 12 years ago
parent
commit
845023fc80
1 changed files with 2 additions and 2 deletions
  1. 2 2
      laravel/database/schema/grammars/mysql.php

+ 2 - 2
laravel/database/schema/grammars/mysql.php

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