Fix #521 by converting content fields to LONGTEXT in MySQL, to prevent truncation of data.

This commit is contained in:
Claudius Coenen 2017-10-16 10:12:39 +02:00
parent 5ce8f40eac
commit cc49ce55c8
3 changed files with 20 additions and 4 deletions

View file

@ -60,7 +60,7 @@ module.exports = function (sequelize, DataTypes) {
}
},
content: {
type: DataTypes.TEXT,
type: DataTypes.TEXT('long'),
get: function () {
return sequelize.processData(this.getDataValue('content'), '')
},