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

Switch connections in PostgresqlSchemaAdapter.connect_to_new #209

Closed
wants to merge 1 commit into from
Closed

Switch connections in PostgresqlSchemaAdapter.connect_to_new #209

wants to merge 1 commit into from

Conversation

criccomini
Copy link

PostgresqlSchemaAdapter has a bug that prevents it from working when different tenants are using different Postgres hosts. The adapter always connects to the same default database.yml host. This patch fixes this behavior by properly switching to the tenant's DB as defined in the config.tenant_names config map.

Closes #208

PostgresqlSchemaAdapter has a bug that prevents it from working when different
tenants are using different Postgres hosts. The adapter always connects to the
same default database.yml host. This patch fixes this behavior by properly
switching to the tenant's DB as defined in the config.tenant_names config map.

Closes #208
@criccomini
Copy link
Author

See #208 for additional notes.

@criccomini criccomini closed this by deleting the head repository May 8, 2023
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.

Adding multi_server_setup to already established application
1 participant