Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Allow non 'Postgres' database schema to be used. #9

@ghost

Description

Can you please provide an example connecting to a pg database that is external link (ie: not dependant on the docker-compose.yml database dependency).

What I found is that the code assumes the database name is 'Postgres' and cannot connect

For instance, assume we wish to change:

- ConnectionStrings:DBConnectionString=Server=merchant-gateway-database;Port=5432;User Id=merchant;Password=merchant;Database=merchant_gateway;
- ConnectionStrings:DBConnectionStringMaster=Server=merchant-gateway-database;Port=5432;User Id=postgres;Password=postgres;Database=merchant_gateway;

To a remote host, custom user id and password with database 'merchant_gateway' by changing the above string and also removing the depends_on in the docker-compose file.

Expected Outcome

Developer is able to point the mapi server to a remote database with different User Id than postgres and still connect to schema merchant_gateway

Actual Outcome

Unable to connect to remote schema because the code expects postgres as database name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions