Skip to content

Commit

Permalink
fix username of utf8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
wangchou committed Nov 14, 2019
1 parent 83e7a09 commit 230e3f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ module.exports = (sequelize, DataTypes) => {
googleId: DataTypes.STRING,
username: DataTypes.STRING,
thumbnail: DataTypes.STRING
}, {});
}, {
charset: 'utf8mb4',
});
User.associate = function(models) {
// associations can be defined here
};
Expand Down

0 comments on commit 230e3f2

Please sign in to comment.