summaryrefslogtreecommitdiff
path: root/lib/migrations/20180209120907-longtext-of-authorship.js
blob: 04810009e6892bb9ed86911cb4005abb557d1a56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'

module.exports = {
  up: async function (queryInterface, Sequelize) {
    await queryInterface.changeColumn('Notes', 'authorship', { type: Sequelize.TEXT('long') })
    await queryInterface.changeColumn('Revisions', 'authorship', { type: Sequelize.TEXT('long') })
  },

  down: async function (queryInterface, Sequelize) {
    await queryInterface.changeColumn('Notes', 'authorship', { type: Sequelize.TEXT })
    await queryInterface.changeColumn('Revisions', 'authorship', { type: Sequelize.TEXT })
  }
}