change length to 36 for type uuid mysql

This commit is contained in:
KuongKnight 2018-08-02 00:05:29 +07:00
parent dd7e6a479c
commit 6c0abfc314

View File

@ -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';