From 189e5cd93951d5815d745c35d4391bbec129385e Mon Sep 17 00:00:00 2001 From: Sachin Maheshwari Date: Mon, 9 Apr 2018 16:27:59 +0530 Subject: [PATCH] increasing field data from verchar 255 to text. --- src/models/Email.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/Email.js b/src/models/Email.js index 2b1760b..1c6a3cc 100644 --- a/src/models/Email.js +++ b/src/models/Email.js @@ -13,7 +13,7 @@ module.exports = (sequelize, DataTypes) => sequelize.define('Email', { id: { type: DataTypes.BIGINT, primaryKey: true, autoIncrement: true }, topicName: { type: DataTypes.STRING, allowNull: true, field: 'topic_name' }, - data: { type: DataTypes.STRING, allowNull: false }, + data: { type: DataTypes.TEXT, allowNull: false }, recipients: { type: DataTypes.STRING, allowNull: false }, status: { type: DataTypes.STRING, allowNull: false }, }, {});