summaryrefslogtreecommitdiff
path: root/lib/migrations/20180306150303-fix-enum.js
blob: 433a97492193ecb2c8dd575a0e0bd38742c45989 (plain)
1
2
3
4
5
6
7
8
9
10
11
'use strict'

module.exports = {
  up: function (queryInterface, Sequelize) {
    queryInterface.changeColumn('Notes', 'permission', { type: Sequelize.ENUM('freely', 'editable', 'limited', 'locked', 'protected', 'private') })
  },

  down: function (queryInterface, Sequelize) {
    queryInterface.changeColumn('Notes', 'permission', { type: Sequelize.ENUM('freely', 'editable', 'locked', 'private') })
  }
}