Skip to content

Conversation

@uepoch
Copy link
Contributor

@uepoch uepoch commented Dec 22, 2020

In some unusual setups (cloud managed databases, yay!) the default port is not used for the postgres database.

This fixes a bug in the alembic template, to properly include the content of POSTGRES_PORT in the PostgresDSN

@rouralberto
Copy link

We need this as mentioned in #329

@tiangolo tiangolo changed the title Take POSTGRES_PORT in consideration in alembic migrations ✨ Add support for setting Mar 12, 2024
@tiangolo tiangolo changed the title ✨ Add support for setting ✨ Add support for setting POSTGRES_PORT Mar 12, 2024
@tiangolo tiangolo added feature New feature or request and removed investigate labels Mar 12, 2024
@tiangolo
Copy link
Member

Thank you! 🚀

I updated it to align it with the rest of the current code and it's now ready. 🤓

@tiangolo tiangolo merged commit 5ad3384 into fastapi:master Mar 12, 2024
gusevyaroslove pushed a commit to gusevyaroslove/fastapi-template that referenced this pull request Aug 4, 2024
Co-authored-by: Martin Conraux <[email protected]>
Co-authored-by: Sebastián Ramírez <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants