Fix redundant parameter to removeColumn in db migration scripts

This commit is contained in:
Wu Cheng-Han 2017-01-21 12:53:18 +08:00
parent 5e1d022e13
commit 6e8ff3de23
2 changed files with 3 additions and 3 deletions

View file

@ -6,6 +6,6 @@ module.exports = {
},
down: function (queryInterface, Sequelize) {
queryInterface.removeColumn('Notes', 'deletedAt', Sequelize.DATE);
queryInterface.removeColumn('Notes', 'deletedAt');
}
};

View file

@ -7,7 +7,7 @@ module.exports = {
},
down: function (queryInterface, Sequelize) {
queryInterface.removeColumn('Users', 'email', Sequelize.TEXT);
queryInterface.removeColumn('Users', 'password', Sequelize.TEXT);
queryInterface.removeColumn('Users', 'email');
queryInterface.removeColumn('Users', 'password');
}
};