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

Default dbname broken since 2.11.4 #1783

Closed
TamasSzigeti opened this issue Mar 23, 2024 · 3 comments · Fixed by #1784
Closed

Default dbname broken since 2.11.4 #1783

TamasSzigeti opened this issue Mar 23, 2024 · 3 comments · Fixed by #1784

Comments

@TamasSzigeti
Copy link

Hi!
We are using a custom default_dbname on DigitalOcean postgres servers because postgres db is not accessible there. After #1761 when running doctrine:database:create, it fails with "FATAL: no such database: postgres"

@ostrolucky
Copy link
Member

ostrolucky commented Mar 23, 2024

Can you try if #1784 fixes the issue for you?

BTW that option is deprecated, you should move away from it anyways.

@TamasSzigeti
Copy link
Author

It does fix it indeed, thank you!

I can see now that it is deprecated in v4 but not sure how to replace it, the db url already contains the db name that is to be created, but it is still trying to connect to postgres db without a default… Unless it does not do that in v4 in which case it will indeed be obsolete. Until then, I see no way to move away from it.

@ostrolucky
Copy link
Member

Yes DBAL does not connect to postgres anymore in v4. But bundle will 😅

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

Successfully merging a pull request may close this issue.

2 participants