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 and jannyHou committed May 11, 2020
1 parent 980b7e5 commit eb143b0
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 eb143b0

Please sign in to comment.