设置issue due日期时出错。
字段由单选改为多选后,数据库中的字符串形式的值 需要 自动 转换为 数组形式的值。
开放中
字段由单选改为多选后,数据库中的字符串形式的值 需要 自动 转换为 数组形式的值。
mentioned in commit 1810f589
请注册或登录再回复
开放中
字段由单选改为多选后,数据库中的字符串形式的值 需要 自动 转换为 数组形式的值。
db.contracts.find({}).forEach(function(c){
var othercompany = c.othercompany;
if (typeof(othercompany) == 'string'){
othercompany = othercompany.split(',');
db.contracts.update({_id:c._id},{$set:{othercompany:othercompany}})
}
})
mentioned in commit 1810f589