Skip to content

Commit ac4f417

Browse files
authored
fix(api): pass migrationName to create correctly
db-migrate#678 onto .11 branch
1 parent 3f04f67 commit ac4f417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ dbmigrate.prototype = {
336336
this.internals.matching = scope;
337337
}
338338

339-
this.internals.argv._.push(migrationName);
339+
this.internals.argv._.unshift(migrationName);
340340
return Promise.fromCallback(
341341
function (callback) {
342342
executeCreateMigration(this.internals, this.config, callback);

0 commit comments

Comments
 (0)