Fix field type to prevent data truncation of authorship (#721)
* Fix field type to prevent data truncation of authorship
This commit is contained in:
committed by
Christoph (Sheogorath) Kern
parent
dfa0851d8f
commit
bb5e021f20
@@ -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)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user