Skip to content

Commit 4c434f5

Browse files
Fix the down without specification destination.
Fix the bug of the api for down that can not specify a destination.
1 parent 805d95e commit 4c434f5

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)