Convert history attribute in user table to longtext

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-09-01 10:31:16 +02:00 committed by David Mehren
parent 345fab95c5
commit 9254c0dc39
2 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,9 @@
'use strict'
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.changeColumn('Users', 'history', {
type: Sequelize.TEXT('long')
})
}
}

View file

@ -23,7 +23,7 @@ module.exports = function (sequelize, DataTypes) {
type: DataTypes.TEXT
},
history: {
type: DataTypes.TEXT
type: DataTypes.TEXT('long')
},
accessToken: {
type: DataTypes.TEXT