Browse Source

Merge pull request #824 from tobsn/patch-1

Added UNSIGNED to mysql grammar inrementer()
Taylor Otwell 12 years ago
parent
commit
7354b5fc72
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/database/schema/grammars/mysql.php

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

@@ -143,7 +143,7 @@ class MySQL extends Grammar {
 	{
 		if ($column->type == 'integer' and $column->increment)
 		{
-			return ' AUTO_INCREMENT PRIMARY KEY';
+			return ' UNSIGNED AUTO_INCREMENT PRIMARY KEY';
 		}
 	}