HackMD/lib/migrations/20161009040430-support-delete-note.js

10 lines
244 B
JavaScript
Raw Normal View History

2016-10-10 13:04:24 +00:00
module.exports = {
up: function (queryInterface, Sequelize) {
queryInterface.addColumn('Notes', 'deletedAt', Sequelize.DATE)
2016-10-10 13:04:24 +00:00
},
down: function (queryInterface, Sequelize) {
queryInterface.removeColumn('Notes', 'deletedAt')
2016-10-10 13:04:24 +00:00
}
}