mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Fix #521 by converting content fields to LONGTEXT in MySQL, to prevent truncation of data.
This commit is contained in:
parent
5ce8f40eac
commit
cc49ce55c8
3 changed files with 20 additions and 4 deletions
|
@ -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'), '')
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue