diff --git a/packages/strapi-hook-bookshelf/lib/index.js b/packages/strapi-hook-bookshelf/lib/index.js index 8643b4781e..2d5f7c861b 100644 --- a/packages/strapi-hook-bookshelf/lib/index.js +++ b/packages/strapi-hook-bookshelf/lib/index.js @@ -422,8 +422,10 @@ module.exports = function(strapi) { case 'email': type = 'varchar(255)'; break; - case 'integer': case 'biginteger': + type = definition.client === 'pg' ? 'bigint' : 'bigint(53)'; + break; + case 'integer': type = definition.client === 'pg' ? 'integer' : 'int'; break; case 'float':