summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSheogorath2018-03-06 16:12:57 +0100
committerSheogorath2018-03-06 16:31:41 +0100
commitf85ba6df5357a068d0f8c68a8accfc0611a0c55c (patch)
tree5c885fb0b572268662f5fcc80f278b412e7dbbb6
parent66d8d3180a5cb9ac216222ebbfc258f76dbf41d6 (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.js11
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')})
+ }
+}