From 0a2272515a7308f1307af5e00f466059879fc737 Mon Sep 17 00:00:00 2001 From: DMehaffy Date: Tue, 8 May 2018 11:00:57 -0700 Subject: [PATCH] Update Strapi-Bookshelf to create enumeration columns Added a case for strapi bookshelf to create a varchar(255) column for enumeration values, inline to match how string columns are made. --- packages/strapi-bookshelf/lib/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/strapi-bookshelf/lib/index.js b/packages/strapi-bookshelf/lib/index.js index ebfa6321bf..8c46e42d4a 100755 --- a/packages/strapi-bookshelf/lib/index.js +++ b/packages/strapi-bookshelf/lib/index.js @@ -343,6 +343,7 @@ module.exports = function(strapi) { type = 'text'; break; case 'string': + case 'enumeration': case 'password': case 'email': type = 'varchar(255)';