@@ -177,6 +177,7 @@ dbmigrate.prototype = {
177
177
if ( typeof ( opts ) === 'string' ) {
178
178
179
179
this . internals . migrationMode = opts ;
180
+ this . internals . matching = opts ;
180
181
}
181
182
else if ( typeof ( opts ) === 'function' ) {
182
183
@@ -210,6 +211,7 @@ dbmigrate.prototype = {
210
211
if ( typeof ( opts ) === 'string' ) {
211
212
212
213
this . internals . migrationMode = opts ;
214
+ this . internals . matching = opts ;
213
215
}
214
216
else if ( typeof ( opts ) === 'function' ) {
215
217
@@ -231,6 +233,7 @@ dbmigrate.prototype = {
231
233
if ( typeof ( scope ) === 'string' ) {
232
234
233
235
this . internals . migrationMode = scope ;
236
+ this . internals . matching = scope ;
234
237
}
235
238
else if ( typeof ( scope ) === 'function' ) {
236
239
@@ -263,6 +266,7 @@ dbmigrate.prototype = {
263
266
} else if ( scope ) {
264
267
265
268
this . internals . migrationMode = scope ;
269
+ this . internals . matching = scope ;
266
270
}
267
271
268
272
this . internals . argv . _ . push ( migrationName ) ;
@@ -335,6 +339,7 @@ dbmigrate.prototype = {
335
339
if ( scope ) {
336
340
337
341
this . internals . migrationMode = scope ;
342
+ this . internals . matching = scope ;
338
343
}
339
344
340
345
this . internals . mode = mode || 'vc' ;
@@ -357,10 +362,12 @@ dbmigrate.prototype = {
357
362
if ( scope ) {
358
363
359
364
this . internals . migrationMode = scope ;
365
+ this . internals . matching = scope ;
360
366
}
361
367
} else if ( typeof ( specification ) === 'string' ) {
362
368
363
369
this . internals . migrationMode = scope ;
370
+ this . internals . matching = scope ;
364
371
}
365
372
}
366
373
@@ -383,10 +390,12 @@ dbmigrate.prototype = {
383
390
if ( scope ) {
384
391
385
392
this . internals . migrationMode = scope ;
393
+ this . internals . matching = scope ;
386
394
}
387
395
} else if ( typeof ( specification ) === 'string' ) {
388
396
389
397
this . internals . migrationMode = scope ;
398
+ this . internals . matching = scope ;
390
399
}
391
400
}
392
401
0 commit comments