Skip to content

Commit

Permalink
fix: change type of history in lib/models/user.js to LONGTEXT
Browse files Browse the repository at this point in the history
It will hit maximum length of TEXT in MySQL when it gets too long.
  • Loading branch information
pasmophobia authored Dec 29, 2024
1 parent f00df50 commit 6d38a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function (sequelize, DataTypes) {
type: DataTypes.TEXT
},
history: {
type: DataTypes.TEXT
type: DataTypes.TEXT('long')
},
accessToken: {
type: DataTypes.TEXT
Expand Down

0 comments on commit 6d38a3b

Please sign in to comment.