我有一个环回模型,其属性如下:
"properties": {
"title": {
"type": "string",
"required": true
},
"fulltext": {
"type": "text",
"required": true
}
},当使用自动迁移设置表时,fulltext属性映射到mysql中的一列数据类型。
以下修改没有任何效果:
"fulltext": {
"type": "text",
"required": true,
"mysql": {
"dataType":"mediumtext"
}
}是否有可能
发布于 2015-11-05 13:52:12
我将dataType字段移动到属性定义的基本级别,从而“解决了”强循环v5.0.0中的这一问题。
“全文”:{“类型”:“文本”,“必需”:true,"dataType":"mediumtext“}
虽然我发现这是有关的,因为mediumtext是mysql特定的,但这是我将列添加为中介文本的唯一方法。
发布于 2017-11-02 11:58:54
对于那些仍在寻找解决方案而不将mysql连接器迁移到5.0.0或更高版本的人,请在属性定义中使用dataType:
"fulltext": {
"type": "text",
"required": true,
"dataType": "mediumtext"
}https://stackoverflow.com/questions/33440663
复制相似问题