Modify float for Postgres support

Added check for Postgres, which will use `double precision` in Postgres, MySQL will use `double`
This commit is contained in:
DMehaffy 2018-05-09 12:11:25 -07:00 committed by GitHub
parent 680c7377fc
commit e32cbabaf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,7 +353,7 @@ module.exports = function(strapi) {
type = definition.client === 'pg' ? 'integer' : 'int';
break;
case 'float':
type = 'double';
type = definition.client === 'pg' ? 'double precision' : 'double';
break;
case 'decimal':
type = 'decimal';