Built motion from commit 2e74e5e.|0.0.138
[motion.git] / server / models / mail_message.js
index c949c59..20a9d5d 100644 (file)
@@ -51,7 +51,7 @@ module.exports = function(sequelize, DataTypes) {
                },
                attachment: DataTypes.TEXT,
                text: {
-                       type: DataTypes.BLOB,
+                       type: DataTypes.BLOB('long'),
                        get: function() {
                                if (this.getDataValue('text')) {
                                        return _.toString(this.getDataValue('text'));
@@ -59,14 +59,14 @@ module.exports = function(sequelize, DataTypes) {
                        }
                },
                html: {
-                       type: DataTypes.BLOB,
+                       type: DataTypes.BLOB('long'),
                        get: function() {
                                if (this.getDataValue('html')) {
                                        if (this.getDataValue('html')) {
                                                return _.toString(this.getDataValue('html'));
                                        }
                                }
-                       },
+                       }
                },
                reason: DataTypes.TEXT,
                auto: {