Learn to use Flask-migrate - Create migration files, modify your database schema

Описание к видео Learn to use Flask-migrate - Create migration files, modify your database schema

In this video flask-migrate tutorial we will introduce flask-migrate. flask-migrate is a Flask extension that generates migration files that help us keep our database up to date. We will show how to create migrations, apply migrations as well as rollback migrations.

Chapters:
0:00 Intro
1:00 Install flask-migrate
1:16 Add extension
1:41 Register with application
2:00 Add FLASK_APP location
2:37 Initialise flask-migrate
3:28 Create first migration
4:56 Apply migration to database
6:06 Model changes and additional migrations
8:00 Rolling back migration

Code:
https://github.com/demoskp/flask-migr...

Personal website:
http://www.petsas.consulting

Комментарии

Информация по комментариям в разработке