Fix #521 by converting content fields to LONGTEXT in MySQL, to prevent truncation of data.
This commit is contained in:
@@ -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'), '')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user