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

12 lines
262 B
JavaScript
Raw Normal View History

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