Add support for pgsql for boolean types. (#489)

This commit is contained in:
JC Lee
2017-04-11 07:31:58 +02:00
committed by Barry vd. Heuvel
parent ff3844e4e1
commit 3ab73555d9
+11 -1
View File
@@ -352,9 +352,19 @@ class ModelsCommand extends Command
case 'integer':
case 'bigint':
case 'smallint':
case 'boolean':
$type = 'integer';
break;
case 'boolean':
switch (config('database.default')) {
case 'sqlite':
case 'mysql':
$type = 'integer';
break;
default:
$type = 'boolean';
break;
}
break;
case 'decimal':
case 'float':
$type = 'float';