mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Fix field type to prevent data truncation of authorship (#721)
* Fix field type to prevent data truncation of authorship
This commit is contained in:
parent
dfa0851d8f
commit
bb5e021f20
3 changed files with 15 additions and 2 deletions
|
@ -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)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue