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

🔧 Reuse database url from config in alembic setup #1229

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

patrick91
Copy link
Contributor

This PR changes alembic's env file to reuse database settings defined in app.core.config 😊

I've also taken the opportunity to allow having an empty POSTGRES_PASSWORD, when I develop locally I use https://postgresapp.com/ which creates a db without a password by default 😊

@tiangolo
Copy link
Member

Nice, thanks!

I didn't know about https://postgresapp.com/, cool! Thanks. ☕

@tiangolo tiangolo merged commit b5b2929 into fastapi:master Jul 30, 2024
3 checks passed
@patrick91 patrick91 deleted the feature/reuse-db-config branch July 30, 2024 17:59
d4vidsha added a commit to d4vidsha/scheduler that referenced this pull request Aug 1, 2024
gusevyaroslove pushed a commit to gusevyaroslove/fastapi-template that referenced this pull request Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants