How to Handle the Database Migrations with Alembic | Flask and Python Backend 10

preview_player
Показать описание
In this video I will show how to use Alembic to Handle the database migrations. I show and explain the main commands of Alembic.

Content:
* How to install Alembic with Poetry;
* How to configure Alembic with a single database or multiple databases;
* How to create a single revision;
* How to upgrade and downgrade some revisions;
* Display the current state and the history of revisions;
* How to merge two revisions.

Рекомендации по теме
Комментарии
Автор

This is how a guy looks after dealing with alembic, you can see it in his eyes

ricardosuarezdelvalle
Автор

This is very good to understand Alembic. Btw note to all, video is for understanding how it works, in real world we shouldn't manually edit content in version files (it should be auto generated it for you.) What you want to edit is model files that has table schema detail.

jitvimol
Автор

my project started using alembic and i was completely unfamiliar with it, but this helped me to get a good understanding. very helpful, thank you!

racheljeanquinn
Автор

nice video. learnt about alembic, had too many confusions before the video. Thanks

DeepakVerma-ecfg
Автор

Why people use flask migrate and not alembic directly with --autogenerate?

yomajo
Автор

Sergio, very nice on best practices! Congrats!
How about integration with environment variables with .env and ci/cd pipeline (staging / production) for the next episode?

fbrcode
Автор

I thought this video was well presented and paced. One small thing — you have a pretty intense gaze; I’d probably do something to lessen the impact of that on your videos.

sageinquisitor