#21968: Django doesn't detect initial migration when an app is a dependency
---------------------------------+--------------------
     Reporter:  Ubercore         |      Owner:
         Type:  Uncategorized    |     Status:  new
    Component:  Migrations       |    Version:  master
     Severity:  Release blocker  |   Keywords:
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+--------------------
 I have app A, and app B, neither of which have migrations defined (new
 project, new apps). app A imports a model as an FK from app B. I make app
 A's migrations with {{{ ./manage.py makemigrations app_a }}}, and {{{
 app_a/migrations/0001_initial.py }}} is created. In it, app B is marked as
 a dependency: {{{ dependencies = [('app_b', '__first__'),] }}}. If I try
 to run {{{ ./manage.py makemigrations app_b }}}, I get {{{ No changes
 detected in app 'app_b' }}}

 If I remove app A's migrations entirely, and re-run app B's
 makemigrations, I get an initial migration as I would expect.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21968>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.697ec353c4f95fd09a1fc622f3a319c9%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to