#27004: InconsistentMigrationHistory has false positives with squashed 
migrations
-------------------------+-------------------------------------------------
     Reporter:  jarekwg  |      Owner:  nobody
         Type:  Bug      |     Status:  new
    Component:           |    Version:  1.10
  Migrations             |   Keywords:  InconsistentMigrationHistory
     Severity:  Normal   |  squashed migrate
 Triage Stage:           |  Has patch:  0
  Unreviewed             |
Easy pickings:  0        |      UI/UX:  0
-------------------------+-------------------------------------------------
 {{{
 a -> b -> c

 a_sq_b
 }}}

 Migrations `a`, `b`, `c` applied. `a_sq_b` not.
 When graph is built, since `a` and `b` are applied, `a_sq_b` replaces them
 and becomes `c`'s dependency. However this means that `a_sq_b` is
 unapplied while `c` is. This results in an InconsistentMigrationHistory
 error when you try to run migrations...

 Looks like the results of #25850.

 Unless I'm mistaken this seems like quite a critical error..

--
Ticket URL: <https://code.djangoproject.com/ticket/27004>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.9211c45fbcd7a9f0a1a486185cb0d4f6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to