Skip to content

Commit 3fab12b

Browse files
nicholasyih520YI Nicholas
authored and
YI Nicholas
committed
fix(down api): to support specify destination for down api
Signed-off-by: YI Nicholas <[email protected]>
1 parent 805d95e commit 3fab12b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api.js

+2
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ 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;
221223
} else if (typeof specification === 'function') {
222224
callback = specification;
223225
}

0 commit comments

Comments
 (0)