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

Adding a workaround to connect to the DB directly for migrations #913

Merged
merged 1 commit into from
Nov 16, 2021

Conversation

mboudreau
Copy link
Contributor

Pgbouncer sidecar seems to change the permission model on the DB, setting it as the user itself instead of the role. Micros data team needs to look further into this, but in the meantime I've found a workaround of using PG_DATABASE_URL to connect directly to the repo - circumventing pgbouncer - just for the sequelize migration.

},
"production-migrate": {
"dialect": "postgres",
"use_env_variable": "PG_DATABASE_URL",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the difference here is in the database url, right? DATABASE_URL goes through the PG Bouncer and PG_DATABASE_URL goes directly to postgres, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a workaround for now until pgbouncer permissions are fixed with the sidecar.

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

Successfully merging this pull request may close these issues.

None yet

4 participants