summaryrefslogtreecommitdiff
path: root/lib/migrations/20171009121200-longtext-for-mysql.js
blob: 61b409cab4db79f980f78efa26e7fce1bd5c9428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'use strict'
module.exports = {
  up: function (queryInterface, Sequelize) {
    queryInterface.changeColumn('Notes', 'content', {type: Sequelize.TEXT('long')})
    queryInterface.changeColumn('Revisions', 'patch', {type: Sequelize.TEXT('long')})
    queryInterface.changeColumn('Revisions', 'content', {type: Sequelize.TEXT('long')})
    queryInterface.changeColumn('Revisions', 'latContent', {type: Sequelize.TEXT('long')})
  },

  down: function (queryInterface, Sequelize) {
    queryInterface.changeColumn('Notes', 'content', {type: Sequelize.TEXT})
    queryInterface.changeColumn('Revisions', 'patch', {type: Sequelize.TEXT})
    queryInterface.changeColumn('Revisions', 'content', {type: Sequelize.TEXT})
    queryInterface.changeColumn('Revisions', 'latContent', {type: Sequelize.TEXT})
  }
}