pip install -r requirements.txt
uvicorn main:app --reload
Change alembic.ini
file:
sqlalchemy.url = postgresql://user:pass@host/dbname
Ensure this exists in alembic/env.py
for auto schema generation:
target_metadata = Base.metadata
- create migrations file:
alembic revision --autogenerate -m "updated email column on user table"
- migrate:
alembic upgrade head