#34336: Reverting a migration with `replaces = [...]` set does not revert it
----------------------------+--------------------------------------
     Reporter:  Thomas C    |                    Owner:  nobody
         Type:  Bug         |                   Status:  closed
    Component:  Migrations  |                  Version:  3.2
     Severity:  Normal      |               Resolution:  needsinfo
     Keywords:              |             Triage Stage:  Unreviewed
    Has patch:  0           |      Needs documentation:  0
  Needs tests:  0           |  Patch needs improvement:  0
Easy pickings:  0           |                    UI/UX:  0
----------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 > However, that migration is still marked as passed in the
 django_migrations table and when I try to migrate again to the state 4 it
 fails saying that migration 4 was already applied.

 Reverting squashed migrations works for me. Did you manually add the
 `replaces` attribute? Please reopen the ticket if you can debug your issue
 and provide a small project that reproduces it.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34336#comment:2>
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/010701864e290b2c-4e11e4ce-16a4-4cb8-88c7-bc86c5dfc3ba-000000%40eu-central-1.amazonses.com.

Reply via email to