mirror of
https://github.com/strapi/strapi.git
synced 2025-11-09 06:40:42 +00:00
change mysql from text to longtext
This commit is contained in:
parent
7b2ce955ff
commit
c38112ed56
@ -402,7 +402,7 @@ module.exports = function(strapi) {
|
|||||||
} else {
|
} else {
|
||||||
switch (attribute.type) {
|
switch (attribute.type) {
|
||||||
case 'text':
|
case 'text':
|
||||||
type = 'text';
|
type = definition.client === 'pg' ? type = 'text' : 'longtext';
|
||||||
break;
|
break;
|
||||||
case 'json':
|
case 'json':
|
||||||
type = definition.client === 'pg' ? 'jsonb' : 'longtext';
|
type = definition.client === 'pg' ? 'jsonb' : 'longtext';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user