#31176: `manage.py migrate` should wrap all migrations into a single transaction
-------------------------------------+-------------------------------------
               Reporter:  Andrew     |          Owner:  nobody
  Badr                               |
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:  Database   |        Version:  3.0
  layer (models, ORM)                |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Currently, `manage.py migrate` executes each migration in turn within its
 own transaction. This can break things in the following situation:
 1. Attempt to deploy a change that includes multiple unapplied migrations
 2. Some of the migrations get applied, then one fails (like a check
 constraint)
 3. Code deploy is rolled back, but database is left in an inconsistent
 state.

 To avoid this problem, if the user is attempting to apply a set of
 migrations all at once, they should all be wrapped into a single
 transaction.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31176>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.e006b98dad0ae01a91adec58f0174893%40djangoproject.com.

Reply via email to