diff options
author | Wu Cheng-Han | 2016-10-10 21:04:24 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-10-10 21:04:24 +0800 |
commit | 12d5ed43a7376e0ca361160698f07066218d6ed2 (patch) | |
tree | 697572ef13990565e5a44a66615540a40ef5def7 /lib/migrations | |
parent | 68457ed3a26012e9e72e7ca95bfd7b9c101cdd8b (diff) |
Update to support delete note
Diffstat (limited to 'lib/migrations')
-rw-r--r-- | lib/migrations/20161009040430-support-delete-note.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/migrations/20161009040430-support-delete-note.js b/lib/migrations/20161009040430-support-delete-note.js new file mode 100644 index 00000000..f478b6fe --- /dev/null +++ b/lib/migrations/20161009040430-support-delete-note.js @@ -0,0 +1,11 @@ +'use strict'; + +module.exports = { + up: function (queryInterface, Sequelize) { + queryInterface.addColumn('Notes', 'deletedAt', Sequelize.DATE); + }, + + down: function (queryInterface, Sequelize) { + queryInterface.removeColumn('Notes', 'deletedAt', Sequelize.DATE); + } +}; |