summaryrefslogtreecommitdiff
path: root/lib/migrations/20180306150303-fix-enum.js
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-03-17 21:33:02 +0100
committerGitHub2018-03-17 21:33:02 +0100
commit6b30f662725b54d9c0ef3954fdb5a463da697cc2 (patch)
tree63eb10f1abc2578c483fc94a7622be49746f90ad /lib/migrations/20180306150303-fix-enum.js
parente2b8b925304a35bd1514a27def56ac5d521a7051 (diff)
parentf85ba6df5357a068d0f8c68a8accfc0611a0c55c (diff)
Merge pull request #757 from SISheogorath/fix/migration
Add missing migration for permissions
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')})
+ }
+}