diff options
author | Sheogorath | 2018-03-06 16:12:57 +0100 |
---|---|---|
committer | Sheogorath | 2018-03-06 16:31:41 +0100 |
commit | f85ba6df5357a068d0f8c68a8accfc0611a0c55c (patch) | |
tree | 5c885fb0b572268662f5fcc80f278b412e7dbbb6 /lib/migrations | |
parent | 66d8d3180a5cb9ac216222ebbfc258f76dbf41d6 (diff) |
Add missing migration for permissions
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
Diffstat (limited to '')
-rw-r--r-- | lib/migrations/20180306150303-fix-enum.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/migrations/20180306150303-fix-enum.js b/lib/migrations/20180306150303-fix-enum.js new file mode 100644 index 00000000..0ee58a94 --- /dev/null +++ b/lib/migrations/20180306150303-fix-enum.js @@ -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')}) + } +} |