diff options
author | Christoph (Sheogorath) Kern | 2018-01-18 11:16:59 +0100 |
---|---|---|
committer | GitHub | 2018-01-18 11:16:59 +0100 |
commit | af082d934761cbc72c14293376f7c2df2367e6b7 (patch) | |
tree | f3027423e1aab6b3599574321b8685b78fef2828 /lib/models/note.js | |
parent | 9219a9b48c9f08919fc15b6b5a07ba8660125e3f (diff) | |
parent | cc49ce55c8fdc5237d1b45c75df991cb958b46d9 (diff) |
Merge pull request #567 from ccoenen/fix-mysql-text-length
converting all content fields to MEDIUMTEXT (affects MySQL only)
Diffstat (limited to 'lib/models/note.js')
-rw-r--r-- | lib/models/note.js | 2 |
1 files changed, 1 insertions, 1 deletions
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'), '') }, |