summaryrefslogtreecommitdiff
path: root/lib/migrations/20180306150303-fix-enum.js
blob: 0ee58a94343941d0ac74bbb281d126955def45a6 (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')})
  }
}