change mysql from text to longtext

This commit is contained in:
DMehaffy 2018-07-25 11:04:22 -07:00
parent 7b2ce955ff
commit c38112ed56

View File

@ -402,7 +402,7 @@ module.exports = function(strapi) {
} else {
switch (attribute.type) {
case 'text':
type = 'text';
type = definition.client === 'pg' ? type = 'text' : 'longtext';
break;
case 'json':
type = definition.client === 'pg' ? 'jsonb' : 'longtext';