不要怂,就是干,撸起袖子干!

Commit 6445ee27 by Charles Hill

Fix for SQLite; have to use INTEGER instead of INTEGER(11) for auto increment fields

1 parent 1d57ea7c
Showing with 3 additions and 3 deletions
......@@ -2061,13 +2061,13 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
var self = this;
var User = self.sequelize.define('User', {
id: {type: Sequelize.INTEGER(11), autoIncrement: true, primaryKey: true},
id: {type: Sequelize.INTEGER, autoIncrement: true, primaryKey: true},
username: {type: Sequelize.STRING}
})
var Message = self.sequelize.define('Message', {
id: {type: Sequelize.INTEGER(11), autoIncrement: true, primaryKey: true},
user_id: {type: Sequelize.INTEGER(11)},
id: {type: Sequelize.INTEGER, autoIncrement: true, primaryKey: true},
user_id: {type: Sequelize.INTEGER},
message: {type: Sequelize.STRING}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!