This post is about how I currently handle database migrations with Python. My go-to tech stack setup is FastAPI, SQLAlchemy 2.0, and alembic. I also make scripts so that I don’t need to remember the commands, as they are kind of hard to remember sometimes. Those scripts will also be included in this post.
}