From bb5e021f201c8ad83fe2736dee0faef123bfca50 Mon Sep 17 00:00:00 2001 From: Max Wu Date: Fri, 9 Feb 2018 21:27:06 +0800 Subject: Fix field type to prevent data truncation of authorship (#721) * Fix field type to prevent data truncation of authorship --- lib/models/note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/models/note.js') diff --git a/lib/models/note.js b/lib/models/note.js index 33dde80d..484f1a8c 100644 --- a/lib/models/note.js +++ b/lib/models/note.js @@ -69,7 +69,7 @@ module.exports = function (sequelize, DataTypes) { } }, authorship: { - type: DataTypes.TEXT, + type: DataTypes.TEXT('long'), get: function () { return sequelize.processData(this.getDataValue('authorship'), [], JSON.parse) }, -- cgit v1.2.3