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

Make it possible to change the master database name #21

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

au-ee
Copy link

@au-ee au-ee commented Sep 20, 2024

Checklist

  • I have read the Contributing Guide
  • I have checked to ensure this does not introduce an unintended breaking changes
  • I have considered appropriate testing for my change

Description

I had to run a DbUp migration with a hosted PostgreSQL database at a cloud provider.
Their setup does not provide a database named postgres which DbUp requires.

In this change, I introduced a public static property named MasterDatabaseName which has the default value postgres. If the user does not set it explicitly, nothing changes. In my case, I could just set it to the name of an existing db name (which is defaultdb in my case).

References:

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.

EnsureDatabase.For.PostgresqlDatabase doesn't work if database account cannot access postgres database
1 participant