Strategies for handling conflicts and rollbacks in Django database migrations

Oct 17 2:55 PM EDT :calendar: to 3:20 pm

About This Talk

Managing database migrations in Django can be challenging, especially in large projects with multiple developers and frequent releases. Conflicts can arise when multiple developers modify the same models when migration files are applied in the wrong order or in some cases where fields are faked. Rollbacks are also necessary when migrations fail or need to be reverted.

This talk will explore various strategies for handling conflicts and rollbacks in Django database migrations. The aim is to provide attendees with practical solutions that can help them effectively manage database schema changes in their Django projects.

Some of the strategies that will be discussed in the talk include using database locking to prevent conflicts, resolving conflicts manually by merging migration files, using migration squashing to reduce the number of migration files, and handling rollbacks by using version control systems.

Attendees will learn how to identify and resolve conflicts in their migration files and how to apply best practices to ensure a smooth migration process. They will also gain insights into how to minimize the risk of data loss and downtime during rollbacks.

By the end of the talk, attendees will have a deeper understanding of the challenges involved in managing database migrations and be better equipped to handle conflicts and rollbacks in their Django projects.

Presenters

    Photo of Abigail Afi Gbadago

    Abigail Afi Gbadago

    I am Abigail Afi Gbadago; a software engineer, community builder and technical writer.

    I contribute, coach and speak at Open Source communities/organizations such as OSM Ghana, Rails Girls Ghana, Everything Open Source, Django Girls Ghana, Python Ghana and PyLadies Ghana.