From 502e0a8ab65baad5e3fa2db755339dcf37882c1d Mon Sep 17 00:00:00 2001 From: Hendrik Leppelsack Date: Sat, 22 Apr 2017 10:03:03 +0200 Subject: [PATCH] use json for occurrences column --- api/models/contains.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/models/contains.js b/api/models/contains.js index 88e9ca6..cfcbcfa 100644 --- a/api/models/contains.js +++ b/api/models/contains.js @@ -6,7 +6,7 @@ module.exports = function(sequelize, DataTypes) { primaryKey: true }, occurrences: { - type: DataTypes.TEXT + type: DataTypes.JSON } }, { freezeTableName: true, // Model tableName will be the same as the model name