Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing Migrations._collection #79

Open
calindotgabriel opened this issue Jan 11, 2019 · 3 comments
Open

Accessing Migrations._collection #79

calindotgabriel opened this issue Jan 11, 2019 · 3 comments

Comments

@calindotgabriel
Copy link

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
Copy link

Same issue here, has anyone found an answer ?

@StorytellerCZ
Copy link
Collaborator

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

@StorytellerCZ
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants