tbicr / django-pg-zero-downtime-migrations

Django postgresql backend that apply migrations with respect to database locks
MIT License
525 stars 25 forks source link

Drop constraints before drop column or table #65

Closed tbicr closed 5 months ago

tbicr commented 5 months ago

When column or table dropped it also drop with cascade related constraints as foreign keys, index constraints and regular indexes.

Assume that next operations take some time:

Lets consider possible scenarios:

See also https://github.com/tbicr/django-pg-zero-downtime-migrations/issues/25