1
我想知道如何在使用sails-mysql的水线模型中定义bigint类型?找不到任何适当的文档。似乎它不支持bigint类型,但我真的需要它。试图挖掘源代码我发现了一些谎言: https://github.com/balderdashy/sails-mysql/blob/987f4674785970951bc52becdfdb479864106da1/helpers/private/schema/build-schema.js#L29 但它仍然无法正常工作。Waterline BIGINT type with sails-mysql
module.exports = {
attributes: {
userId: {
type: 'bigint',
autoIncrement: true,
primaryKey: true,
unique: true,
},
}
};
这一个仍然不断创建一个整数字段在数据库中。