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

Ability to use the DB connection settings of the Default tenant in Auto Setup #17578

Open
canadacubachina opened this issue Mar 8, 2025 · 3 comments

Comments

@canadacubachina
Copy link
Contributor

Is your feature request related to a problem?

Describe the solution you'd like

when there is no DatabaseConnectionString for specific tenant , check and use default site DatabaseConnectionString

Describe alternatives you've considered

@Piedone Piedone changed the title Can we use default site DatabaseConnectionString for auto setup Ability to use the DB connection settings of the Default tenant in Auto Setup Mar 10, 2025
@Piedone
Copy link
Member

Piedone commented Mar 10, 2025

How do you imagine this working? If the DB settings are empty for a tenant, then it'll use the Default's? BTW it's not just about the connection string: DatabaseProvider and DatabaseConnectionString both need to be taken into account. And in such a case DatabaseTablePrefix will need to be provided.

@canadacubachina
Copy link
Contributor Author

1-- aim: suppose you have 1000tenants while auto setup, do not need repeat DatabaseConnectionString
2-- not necessary as you said i guess , just if DatabaseConnectionString is empty, find a default (or general or top) DatabaseConnectionString

@Piedone
Copy link
Member

Piedone commented Mar 11, 2025

1000 tenants configured with Auto Setup is probably a bit of a stretch :). But this can be useful with a couple ones too, though not necessarily with SQLite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants