From 6d38a3bca10b14ed07d78e73b818acf7205abe03 Mon Sep 17 00:00:00 2001 From: pasmophobia Date: Sun, 29 Dec 2024 22:38:08 +0900 Subject: [PATCH] fix: change type of history in lib/models/user.js to LONGTEXT It will hit maximum length of TEXT in MySQL when it gets too long. --- lib/models/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/user.js b/lib/models/user.js index f2e50b5a6a..3b7a139aa4 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -22,7 +22,7 @@ module.exports = function (sequelize, DataTypes) { type: DataTypes.TEXT }, history: { - type: DataTypes.TEXT + type: DataTypes.TEXT('long') }, accessToken: { type: DataTypes.TEXT