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

Is there a way to grab the connectionUri or any other useful information in the up or down functions? #70

Open
zhuber opened this issue Dec 10, 2020 · 0 comments

Comments

@zhuber
Copy link

zhuber commented Dec 10, 2020

We have a pretty specific requirement for running migrations, which involves a patch to Mongoose. As a result, we can't simply load a model from mongoose within up() or down(). We need to either pass a connection to a model around, or mount the model by using the connectionUri itself. I see that I can't just tack on params like this up(connection), but I was hoping there is some other way to grab the current connection information so that our migrations can be written so they run correctly.

Any help would be greatly appreciated, thanks.

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

1 participant