Skip to content

Commit 9c8c29f

Browse files
nicholasyih520YI Nicholas
authored and
YI Nicholas
committed
Fix the down without specification destination.
Fix the bug of the api for down that can not specify a destination. Signed-off-by: YI Nicholas <[email protected]> fix DCO fix the down api without specification destination
1 parent 805d95e commit 9c8c29f

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)