Skip to content

Commit

Permalink
Update migration.js
Browse files Browse the repository at this point in the history
Execute alterTable statements in order
  • Loading branch information
ataft authored Mar 27, 2020
1 parent 6bd276c commit bb4a867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/migration.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function mixinMigration(MsSQL) {
statements = statements.concat(self.getDropColumns(model, actualFields));
statements = statements.concat(self.addIndexes(model, actualIndexes));

async.each(statements, function(query, fn) {
async.eachSeries(statements, function(query, fn) {
if (checkOnly) {
fn(null, true, {statements: statements, query: query});
} else {
Expand Down

0 comments on commit bb4a867

Please sign in to comment.