From 6c0abfc314b0b6cda7725acdfa3c2446543c44af Mon Sep 17 00:00:00 2001 From: KuongKnight Date: Thu, 2 Aug 2018 00:05:29 +0700 Subject: [PATCH] change length to 36 for type uuid mysql --- packages/strapi-hook-bookshelf/lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';