Closed g14a closed 3 years ago
@tj @wesleytodd did anyone have time to look at this?
I solved it. My custom-store file was inside the migrations directory. Sorry to bother ya'll.
Hey, sorry for the lack of response (on holiday). Any file in the migrations
directory is treated as a migration to run, so yes your solution works.
Another option is to use the filterFunction
option to filter out your store file. That can be passed as a glob pattern on the cli via the --matches
flag. Hope that helps.
Hello. I'm trying to have a Mongo collection as a custom store for migrations and my store looks like below:
custom-store.js
And my seed file is of the type
1606969258851-add-name.js
which just has anup
function just for testing purposes:I'm using the command line interface and when I run
I get the following error:
My question is why does a custom store engine need an
up
method? I thought all it needs isload
andsave
. Thank you.@wesleytodd