diff --git a/lib/migrations/20220901102800-convert-history-to-longtext.js b/lib/migrations/20220901102800-convert-history-to-longtext.js new file mode 100644 index 000000000..75e3e58a5 --- /dev/null +++ b/lib/migrations/20220901102800-convert-history-to-longtext.js @@ -0,0 +1,9 @@ +'use strict' + +module.exports = { + up: function (queryInterface, Sequelize) { + return queryInterface.changeColumn('Users', 'history', { + type: Sequelize.TEXT('long') + }) + } +} diff --git a/lib/models/user.js b/lib/models/user.js index 5532e5b31..ff1547458 100644 --- a/lib/models/user.js +++ b/lib/models/user.js @@ -23,7 +23,7 @@ module.exports = function (sequelize, DataTypes) { type: DataTypes.TEXT }, history: { - type: DataTypes.TEXT + type: DataTypes.TEXT('long') }, accessToken: { type: DataTypes.TEXT