Decimal columns as string in Models (#948)

* Decimal columns as string in Models

To follow Eloquent casts

* update tests for decimals
This commit is contained in:
fgibaux
2020-06-09 20:54:26 +02:00
committed by GitHub
parent f3e48cbcce
commit d35ea6e1d4
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -390,6 +390,7 @@ class ModelsCommand extends Command
case 'guid':
case 'datetimetz':
case 'datetime':
case 'decimal':
$type = 'string';
break;
case 'integer':
@@ -408,7 +409,6 @@ class ModelsCommand extends Command
break;
}
break;
case 'decimal':
case 'float':
$type = 'float';
break;