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
})
}
}

View file

@ -7,6 +7,7 @@
### Bugfixes
- Fix a crash when using LDAP authentication with custom search attributes (thanks to [@aboettger-tuhh](https://github.com/aboettger-tuhh) for reporting)
- Fix crash caused by a long note history when the MySQL database is used
## <i class="fa fa-tag"></i> 1.9.4 <i class="fa fa-calendar-o"></i> 2022-07-10