Database migrations matter! Get up and running with Alembic + sqlmodel

Опубликовано: 23 Октябрь 2024
на канале: Pybites
6,279
141

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/lat...

Mentioned video: if _name_ == "__main__": explained:    • if __name__ == "__main__": explained  

---
We appreciate any feedback 💡 - please use this form so we can always make our content better:
https://form.jotform.com/230941798741062 🙏