summaryrefslogtreecommitdiff
path: root/lib/models
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/models/note.js2
-rw-r--r--lib/models/revision.js2
2 files changed, 2 insertions, 2 deletions
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)
},
diff --git a/lib/models/revision.js b/lib/models/revision.js
index 170931b8..9ecd14dc 100644
--- a/lib/models/revision.js
+++ b/lib/models/revision.js
@@ -88,7 +88,7 @@ module.exports = function (sequelize, DataTypes) {
type: DataTypes.INTEGER
},
authorship: {
- type: DataTypes.TEXT,
+ type: DataTypes.TEXT('long'),
get: function () {
return sequelize.processData(this.getDataValue('authorship'), [], JSON.parse)
},