diff --git a/lib/migrations/20220901102800-convert-history-to-longtext.js b/lib/migrations/20220901102800-convert-history-to-longtext.js index 75e3e58a..b17fe9c6 100644 --- a/lib/migrations/20220901102800-convert-history-to-longtext.js +++ b/lib/migrations/20220901102800-convert-history-to-longtext.js @@ -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 + }) } } diff --git a/public/docs/release-notes.md b/public/docs/release-notes.md index 3e959e96..baea1271 100644 --- a/public/docs/release-notes.md +++ b/public/docs/release-notes.md @@ -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 ## 1.9.4 2022-07-10