percolatestudio/meteor-migrations

Accessing Migrations._collection

calindotgabriel opened this issue · 3 comments

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

Same issue here, has anyone found an answer ?

No, but I plan to add an export in the next version.

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.