Built motion from commit 27af9f03b.|1.0.28
[motion.git] / server / models / sms_message.js
index 8c4bec5..f770e2c 100644 (file)
@@ -19,7 +19,12 @@ module.exports = function(sequelize, DataTypes) {
         is: /^[\+]?[0-9]+$/
       }
     },
-    body: DataTypes.STRING,
+    body: {
+      type: DataTypes.BLOB,
+      get: function() {
+        return this.getDataValue('body').toString();
+      }
+    },
     status: {
       type: DataTypes.STRING,
       defaultValue: 'SENDING'