Skip to content

Commit 388b779

Browse files
committed
fix(api): pass migrationName to create correctly
fixes db-migrate#652 Signed-off-by: James Mortemore <[email protected]>
1 parent 4caaf39 commit 388b779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ dbmigrate.prototype = {
333333
this.internals.matching = scope;
334334
}
335335

336-
this.internals.argv._.push(migrationName);
336+
this.internals.argv._.unshift(migrationName);
337337
return Promise.resolve(
338338
executeCreateMigration(this.internals, this.config)
339339
).asCallback(callback);

0 commit comments

Comments
 (0)