#24155: Rerun migration on same model generate different migratrion
--------------------------------------+--------------------
     Reporter:  tdobrovolny           |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Migrations            |    Version:  1.7
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 When you have an application and run makemigrations command twice,
 generated content of migration file is different (order of generated
 function call parameters etc). Thus, it is very difficult to merge changes
 from two development branches together.

 Workflow
 2) run makemigrations
 3) move generated migration somewhere (app/migrations/0001_initial.py to
 /tmp/)
 4) run makemigrations again
 5) compare generated migration with moved one (diff
 app/migrations/0001_initial.py with /tmp/0001_initial.py

 You got almout all line of code is different.

--
Ticket URL: <https://code.djangoproject.com/ticket/24155>
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/054.4ac16f3a9cd1f0f62af205b40ae7ca45%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to