Browse Source

type boolean is tinyint(1)

switched from default "tinyint" which creates a tinyint(4) to the
standard mysql boolean type "tinyint(1)"
Tobsn 12 years ago
parent
commit
5716b4da40
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

@@ -383,7 +383,7 @@ class MySQL extends Grammar {
 	 */
 	 */
 	protected function type_boolean(Fluent $column)
 	protected function type_boolean(Fluent $column)
 	{
 	{
-		return 'TINYINT';
+		return 'TINYINT(1)';
 	}
 	}
 
 
 	/**
 	/**