Skip to content

Commit ff63b47

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
1 parent 805d95e commit ff63b47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api.js

Lines changed: 2 additions & 0 deletions
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)