Skip to content

Commit

Permalink
fix(api): pass migrationName to create correctly
Browse files Browse the repository at this point in the history
fixes #652

Signed-off-by: James Mortemore <jamesmortemore@gmail.com>
  • Loading branch information
confuser committed Apr 2, 2020
1 parent 4caaf39 commit 388b779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ dbmigrate.prototype = {
this.internals.matching = scope;
}

this.internals.argv._.push(migrationName);
this.internals.argv._.unshift(migrationName);
return Promise.resolve(
executeCreateMigration(this.internals, this.config)
).asCallback(callback);
Expand Down

0 comments on commit 388b779

Please sign in to comment.