hedgedoc/lib/migrations/20220901102800-convert-history-to-longtext.js
Tilman Vatteroth 68466f6f09 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>
2022-09-25 11:09:23 +02:00

15 lines
335 B
JavaScript

'use strict'
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.changeColumn('Users', 'history', {
type: Sequelize.TEXT('long')
})
},
down: function (queryInterface, Sequelize) {
return queryInterface.changeColumn('Users', 'history', {
type: Sequelize.TEXT
})
}
}