fastapi / full-stack-fastapi-template

Full stack, modern web application template. Using FastAPI, React, SQLModel, PostgreSQL, Docker, GitHub Actions, automatic HTTPS and more.
MIT License
27.1k stars 4.82k forks source link

🔧 Reuse database url from config in alembic setup #1229

Closed patrick91 closed 3 months ago

patrick91 commented 4 months ago

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 commented 3 months ago

Nice, thanks!

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