From 42db883e9d8e1747593652d3955d7c02aaaa8390 Mon Sep 17 00:00:00 2001 From: Nicholas Yih <44331205+nicholasyih520@users.noreply.github.com> Date: Tue, 23 Jul 2019 19:30:29 +0800 Subject: [PATCH] fix(down api): support using down api can specify the destination and housekeep the former pull request Signed-off-by: YI Nicholas --- api.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api.js b/api.js index 4aa0b16d..46e1f10b 100644 --- a/api.js +++ b/api.js @@ -218,6 +218,9 @@ dbmigrate.prototype = { if (arguments.length > 0) { if (typeof specification === 'number') { this.internals.argv.count = arguments[0]; + } else if (typeof specification === 'string') { + this.internals.argv.destination = specification; + this.internals.argv.count = Number.MAX_VALUE; } else if (typeof specification === 'function') { callback = specification; }