Skip to content

Commit 8f88a73

Browse files
authored
Merge pull request #637 from nicholasyih520/master
Fix the down without specification destination.
2 parents 2bab8cb + 42db883 commit 8f88a73

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api.js

+3
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ dbmigrate.prototype = {
218218
if (arguments.length > 0) {
219219
if (typeof specification === 'number') {
220220
this.internals.argv.count = arguments[0];
221+
} else if (typeof specification === 'string') {
222+
this.internals.argv.destination = specification;
223+
this.internals.argv.count = Number.MAX_VALUE;
221224
} else if (typeof specification === 'function') {
222225
callback = specification;
223226
}

0 commit comments

Comments
 (0)