Skip to content

Commit 42db883

Browse files
nicholasyih520YI Nicholas
authored and
YI Nicholas
committed
fix(down api): support using down api can specify the destination and housekeep the former pull request
Signed-off-by: YI Nicholas <[email protected]>
1 parent 805d95e commit 42db883

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)