In this video we will show you how to use Alembic in combination with sqlmodel.
After briefly discussing what a database version control system does, we look at how to get started step by step.
We will run into some (common) errors which I left in because I think you can learn from them.
We also quickly look at what happens when you add a required (or not nullable) column when there is already data the database and I compare it to my experience with Django's migration system.
We hope this makes it easier to start using Alembic together with sqlmodel.
Auto Generating Migrations docs: https://alembic.sqlalchemy.org/en/latest/autogenerate.html
Mentioned video: if __name__ == "__main__": explained: https://www.youtube.com/watch?v=ubpFY7_dAW4
---
We appreciate any feedback 💡 - please use this form so we can always make our content better:
https://form.jotform.com/230941798741062 🙏