mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 22:24:28 +00:00
Merge pull request #757 from SISheogorath/fix/migration
Add missing migration for permissions
This commit is contained in:
commit
6b30f66272
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…
x
Reference in New Issue
Block a user