不要怂,就是干,撸起袖子干!

Commit 439ae4b9 by Matheus Assis Committed by Sushant

docs(migrations): correct usage of removeColumn (#11480)

1 parent fd080235
Showing with 1 additions and 8 deletions
......@@ -319,14 +319,7 @@ module.exports = {
async down(queryInterface, Sequelize) {
const transaction = await queryInterface.sequelize.transaction();
try {
await queryInterface.removeColumn(
'Person',
'petName',
{
type: Sequelize.STRING,
},
{ transaction }
);
await queryInterface.removeColumn('Person', 'petName', { transaction });
await transaction.commit();
} catch (err) {
await transaction.rollback();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!