From cc49ce55c8fdc5237d1b45c75df991cb958b46d9 Mon Sep 17 00:00:00 2001 From: Claudius Coenen Date: Mon, 16 Oct 2017 10:12:39 +0200 Subject: Fix #521 by converting content fields to LONGTEXT in MySQL, to prevent truncation of data. --- 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 c0ef1374..33dde80d 100644 --- a/lib/models/note.js +++ b/lib/models/note.js @@ -60,7 +60,7 @@ module.exports = function (sequelize, DataTypes) { } }, content: { - type: DataTypes.TEXT, + type: DataTypes.TEXT('long'), get: function () { return sequelize.processData(this.getDataValue('content'), '') }, -- cgit v1.2.3