fix: Change data type of history attribute in user table to long text

When using mysql the normal text attribute has a fixed size. When this size is reached then the json will be cut off and becomes invalid.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-09-01 10:36:10 +02:00 committed by David Mehren
parent 9254c0dc39
commit 68466f6f09
2 changed files with 7 additions and 0 deletions

View file

@ -5,5 +5,11 @@ module.exports = {
return queryInterface.changeColumn('Users', 'history', {
type: Sequelize.TEXT('long')
})
},
down: function (queryInterface, Sequelize) {
return queryInterface.changeColumn('Users', 'history', {
type: Sequelize.TEXT
})
}
}