【发布时间】:2017-04-07 21:27:27
【问题描述】:
我想知道如何使用sails-mysql 在水线模型中定义bigint 类型?找不到任何关于它的适当文档。似乎它不支持 bigint 类型,但我真的需要它。试图挖掘源代码我发现了一些类似的东西: https://github.com/balderdashy/sails-mysql/blob/987f4674785970951bc52becdfdb479864106da1/helpers/private/schema/build-schema.js#L29 但是还是不行。
module.exports = {
attributes: {
userId: {
type: 'bigint',
autoIncrement: true,
primaryKey: true,
unique: true,
},
}
};
这个仍然在数据库中创建一个整数字段。
【问题讨论】: