-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
Add Support for Specifying Database Schema via Environment Variable #726
Comments
The database URL can contain the schema you want to deploy it to, e.g.
Is this not what you need? |
Ah yes, schemas != databases. |
If the issue is logical separation, does multiple databases not solve the problem? I.e. the Pact Broker database should be separate to whatever else is on the postgres cluster. My understanding is that a schema is lower in the hierarchy than database. So it might be "public", but it's only public within the database itself. |
New DB will solve the problem of separation from application DB. But still there should be a way to define schema under that DB. |
moved to pact_broker repo, as the pact-broker-docker repo serves to only have additional code for dockerisation |
I am trying to connect to an external database and have successfully done so by defining the PACT_BROKER_DATABASE_URL. However, the tables are being created under the public schema of the database. Since this database is used by multiple applications, I would like to have these tables under a specific schema for Pact Broker.
I couldn't find any way to achieve this using an environment variable. This seems like a common scenario and should ideally be controllable via an environment variable.
The text was updated successfully, but these errors were encountered: