Accessing Migrations._collection
calindotgabriel opened this issue · 3 comments
calindotgabriel commented
Is there any way to modify the version of the Migrations control document to set a custom one ?
I checked the source code and then I tried
Migrations._collection.update({ _id: "control" }, { $set: { version: 1095 } })
but I get Migrations._collection undefined
is there any way you can expose the _collection ?
Thank you
MatthieuJnon commented
Same issue here, has anyone found an answer ?
StorytellerCZ commented
No, but I plan to add an export in the next version.
StorytellerCZ commented
So from looking at the code, the collection should be available after startup. Accessing it before startup is indeed undefined as it is set during startup.