Add missing migration for permissions
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
66d8d3180a
commit
f85ba6df53
1 changed files with 11 additions and 0 deletions
11
lib/migrations/20180306150303-fix-enum.js
Normal file
11
lib/migrations/20180306150303-fix-enum.js
Normal file
|
@ -0,0 +1,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')})
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue