Fix field type to prevent data truncation of authorship (#721)

* Fix field type to prevent data truncation of authorship
This commit is contained in:
Max Wu 2018-02-09 21:27:06 +08:00 committed by Christoph (Sheogorath) Kern
parent dfa0851d8f
commit bb5e021f20
3 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,13 @@
'use strict'
module.exports = {
up: function (queryInterface, Sequelize) {
queryInterface.changeColumn('Notes', 'authorship', {type: Sequelize.TEXT('long')})
queryInterface.changeColumn('Revisions', 'authorship', {type: Sequelize.TEXT('long')})
},
down: function (queryInterface, Sequelize) {
queryInterface.changeColumn('Notes', 'authorship', {type: Sequelize.TEXT})
queryInterface.changeColumn('Revisions', 'authorship', {type: Sequelize.TEXT})
}
}