mirror of
https://github.com/strapi/strapi.git
synced 2025-09-11 09:36:38 +00:00
change length to 36 for type uuid mysql
This commit is contained in:
parent
dd7e6a479c
commit
6c0abfc314
@ -398,7 +398,7 @@ module.exports = function(strapi) {
|
|||||||
} else {
|
} else {
|
||||||
switch (attribute.type) {
|
switch (attribute.type) {
|
||||||
case 'uuid':
|
case 'uuid':
|
||||||
type = definition.client === 'pg' ? 'uuid' : 'varchar(255)';
|
type = definition.client === 'pg' ? 'uuid' : 'varchar(36)';
|
||||||
break;
|
break;
|
||||||
case 'text':
|
case 'text':
|
||||||
type = definition.client === 'pg' ? type = 'text' : 'longtext';
|
type = definition.client === 'pg' ? type = 'text' : 'longtext';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user