Django Migrations: Pitfalls and Solutions with Benjamin Zagorsky - DjangoCon US 2022

  Рет қаралды 1,347

DjangoCon US

DjangoCon US

Күн бұрын

Django's migration system is one of its greatest strengths as a framework. It can automatically generate migrations based on your changes to your models and can detect which migrations need to be applied to a database. But, as the size of your development team and user base scale, there are pitfalls that you need to be aware of. Not all migrations can be safely reversed, and trying to rewind bad migrations on a production database can cause a data disaster. Not all migrations can be safely deployed without downtime, and trying to deploy them can give your users and your engineers a wall of errors.
This talk will cover the following:
1. How to manage migrations across multiple code branches
2. Reversible migrations: how to write migrations so that they can be safely undone
3. Backwards compatible migrations: which migrations can be run as part of a deploy without causing downtime or errors
4. Handling failed migrations as part of a deployment
This talk was presented at: 2022.djangocon...
LINKS:
Follow Benjamin "Zags" Zagorsky 👇
Follow DjangCon US 👇
/ djangocon
Follow DEFNA 👇
/ defnado
www.defna.org/

Пікірлер
Lightning Talks Day Two with Kojo Idrissa - DjangoCon US 2022
43:14
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Zags Zagorsky - Rapid Prototyping in Django
46:07
DjangoCon US
Рет қаралды 4,4 М.
Hosting and DevOps for Django with Benjamin "Zags" Zagorsky
43:19
DjangoCon US
Рет қаралды 1,4 М.
We Don't Need Migrations Anymore
6:21
Theo - t3․gg
Рет қаралды 63 М.
Fishing for AI-Powered Insights: Lakehouse Technologies
1:35:11
Aniruth Narayanan
Рет қаралды 153