From e0d491cb150f034b048233c71160dffe300a3d45 Mon Sep 17 00:00:00 2001 From: Tobias Orterer Date: Sat, 16 Jun 2012 19:46:50 -0700 Subject: [PATCH] Added UNSIGNED to mysql grammar inrementer() Added UNSIGNED to the mysql grammar file because auto increment fields only run upwards, it's a waste of space to provide negative values by the default SIGNED state of INT. --- laravel/database/schema/grammars/mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/database/schema/grammars/mysql.php b/laravel/database/schema/grammars/mysql.php index c2ae7455..d0ba45ad 100644 --- a/laravel/database/schema/grammars/mysql.php +++ b/laravel/database/schema/grammars/mysql.php @@ -143,7 +143,7 @@ protected function incrementer(Table $table, Fluent $column) { if ($column->type == 'integer' and $column->increment) { - return ' AUTO_INCREMENT PRIMARY KEY'; + return ' UNSIGNED AUTO_INCREMENT PRIMARY KEY'; } }