Django Migrations: Pitfalls and Solutions with Benjamin Zagorsky - DjangoCon US 2022
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:
- How to manage migrations across multiple code branches
- Reversible migrations: how to write migrations so that they can be safely undone
- Backwards compatible migrations: which migrations can be run as part of a deploy without causing downtime or errors
- Handling failed migrations as part of a deployment
This talk was presented at: https://2022.djangocon.us/talks/django-migrations-pitfalls-and-solutions/
LINKS: Follow Benjamin "Zags" Zagorsky 👇
Follow DjangCon US 👇 https://twitter.com/djangocon
Follow DEFNA 👇 https://twitter.com/defnado https://www.defna.org/
Date Added: September 19, 2024
Note: We understand that names change, people change, and bodies change. We respect each individual's journey and privacy. If you have any concerns about a video or need us to remove content, please don't hesitate to contact us. We will handle your request with care and promptly address any issues.