summaryrefslogtreecommitdiff
path: root/lib/migrations/20180209120907-longtext-of-authorship.js
blob: c5d8a1efd1d121b426565cf0730f1f895ec309ea (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 })
  }
}