summaryrefslogtreecommitdiff
path: root/lib/migrations/20180209120907-longtext-of-authorship.js
blob: 4cca5444e3cb35b85769a52cda6746cab34eced1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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})
  }
}