},
attachment: DataTypes.TEXT,
text: {
- type: DataTypes.BLOB,
+ type: DataTypes.BLOB('long'),
get: function() {
if (this.getDataValue('text')) {
return _.toString(this.getDataValue('text'));
}
},
html: {
- type: DataTypes.BLOB,
+ type: DataTypes.BLOB('long'),
get: function() {
if (this.getDataValue('html')) {
- if (this.getDataValue('html')) {
- return _.toString(this.getDataValue('html'));
- }
+ return _.toString(this.getDataValue('html'));
}
}
},