mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 12:13:52 +00:00
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:
parent
680c7377fc
commit
e32cbabaf8
@ -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';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user