Skip to content

Commit

Permalink
Merge pull request #269 from Vardiak/main
Browse files Browse the repository at this point in the history
fix: run migrations in transaction
  • Loading branch information
MRVMV authored Mar 30, 2021
2 parents 8e823dc + 492c776 commit cc97fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assets/migrations/skeleton.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const execute = (queryInterface, sequelize, _commands) => {
next();
});
};
if (this.useTransaction) return queryInterface.sequelize.transaction(run);
if (useTransaction) return queryInterface.sequelize.transaction(run);
return run(null);
};

Expand Down

0 comments on commit cc97fa9

Please sign in to comment.