diff --git a/packages/strapi-hook-bookshelf/lib/index.js b/packages/strapi-hook-bookshelf/lib/index.js index 0fca80a529..e7776e38fd 100755 --- a/packages/strapi-hook-bookshelf/lib/index.js +++ b/packages/strapi-hook-bookshelf/lib/index.js @@ -398,7 +398,7 @@ module.exports = function(strapi) { } else { switch (attribute.type) { case 'uuid': - type = definition.client === 'pg' ? 'uuid' : 'varchar(255)'; + type = definition.client === 'pg' ? 'uuid' : 'varchar(36)'; break; case 'text': type = definition.client === 'pg' ? type = 'text' : 'longtext';