From 3fa8015843ba0266f83af78bb6250e25e373cc47 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Wed, 15 May 2019 10:21:46 -0700 Subject: [PATCH] fixing error with datatype --- models/Organization.js | 2 +- models/Project.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/models/Organization.js b/models/Organization.js index 9038db3..867aaf3 100644 --- a/models/Organization.js +++ b/models/Organization.js @@ -15,7 +15,7 @@ module.exports = (sequelize, DataTypes) => { type: DataTypes.STRING, allowNull: true }, - short_description: { type: DataTypes.Text, allowNull: false }, + short_description: { type: DataTypes.TEXT, allowNull: false }, total_received: { type: DataTypes.INTEGER, defaultValue: 0 diff --git a/models/Project.js b/models/Project.js index 38ea494..66d5c64 100644 --- a/models/Project.js +++ b/models/Project.js @@ -26,7 +26,7 @@ module.exports = (sequelize, DataTypes) => { type: DataTypes.STRING(1000), allowNull: false }, - description: { type: DataTypes.Text, allowNull: false }, + description: { type: DataTypes.TEXT, allowNull: false }, isComplete: { type: DataTypes.BOOLEAN, defaultValue: false