summaryrefslogtreecommitdiff
path: root/lib/migrations/20161009040430-support-delete-note.js
diff options
context:
space:
mode:
authorBoHong Li2017-03-24 11:24:44 +0800
committerBoHong Li2017-03-24 11:26:04 +0800
commit66fc817ad463b8237b5e70363e92b09cbe05b729 (patch)
treec40afa3bcb394271b7b98b9c3a755099180250f8 /lib/migrations/20161009040430-support-delete-note.js
parentcdd8a72d04d60556d5c0277b2dd39573b6d6d563 (diff)
fix: Fixed sequelize-cli db:migration cannot stop when occur error
Up and Down method must return a Promise. breaking changes: docker-hackmd cannot initialize, because db:migration will fail
Diffstat (limited to '')
-rw-r--r--lib/migrations/20161009040430-support-delete-note.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/migrations/20161009040430-support-delete-note.js b/lib/migrations/20161009040430-support-delete-note.js
index 6e6fa20e..a39d1086 100644
--- a/lib/migrations/20161009040430-support-delete-note.js
+++ b/lib/migrations/20161009040430-support-delete-note.js
@@ -1,10 +1,10 @@
'use strict'
module.exports = {
up: function (queryInterface, Sequelize) {
- queryInterface.addColumn('Notes', 'deletedAt', Sequelize.DATE)
+ return queryInterface.addColumn('Notes', 'deletedAt', Sequelize.DATE)
},
down: function (queryInterface, Sequelize) {
- queryInterface.removeColumn('Notes', 'deletedAt')
+ return queryInterface.removeColumn('Notes', 'deletedAt')
}
}