[Django] #21968: Django doesn't detect initial migration when an app is a dependency

4 views
Skip to first unread message

Django

unread,
Feb 6, 2014, 6:15:52 PM2/6/14
to django-...@googlegroups.com
#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.

Django

unread,
Feb 6, 2014, 6:34:37 PM2/6/14
to django-...@googlegroups.com
#21968: Django doesn't detect initial migration when an app is a dependency
---------------------------------+--------------------------------------
Reporter: Ubercore | Owner:
Type: Bug | Status: new
Component: Migrations | Version: master
Severity: Release blocker | Resolution:
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 Ubercore):

* needs_docs: => 0
* type: Uncategorized => Bug
* needs_tests: => 0
* needs_better_patch: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/21968#comment:1>

Django

unread,
Feb 7, 2014, 9:52:11 AM2/7/14
to django-...@googlegroups.com
#21968: Django doesn't detect initial migration when an app is a dependency
---------------------------------+--------------------------------------
Reporter: Ubercore | Owner:
Type: Bug | Status: new
Component: Migrations | Version: master
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by Ubercore):

* needs_tests: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/21968#comment:2>

Django

unread,
Feb 8, 2014, 3:35:32 PM2/8/14
to django-...@googlegroups.com
#21968: Django doesn't detect initial migration when an app is a dependency
---------------------------------+------------------------------------
Reporter: Ubercore | Owner:
Type: Bug | Status: new
Component: Migrations | Version: master
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by aaugustin):

* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/21968#comment:3>

Django

unread,
Feb 9, 2014, 6:42:25 AM2/9/14
to django-...@googlegroups.com
#21968: Django doesn't detect initial migration when an app is a dependency
-------------------------------------+-------------------------------------
Reporter: Ubercore | Owner: Andrew
Type: Bug | Godwin <andrew@…>
Component: Migrations | Status: closed
Severity: Release blocker | Version: master
Keywords: | Resolution: fixed
Has patch: 0 | Triage Stage: Accepted
Needs tests: 1 | Needs documentation: 0
Easy pickings: 0 | Patch needs improvement: 0
| UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Andrew Godwin <andrew@…>):

* status: new => closed
* owner: => Andrew Godwin <andrew@…>
* resolution: => fixed


Comment:

In [changeset:"2085f53f567f7619ecf3eab93fdacab7a5991a11"]:
{{{
#!CommitTicketReference repository=""
revision="2085f53f567f7619ecf3eab93fdacab7a5991a11"
Fixed #21968: Bad detection of old-style apps to add initial migration
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/21968#comment:4>

Reply all
Reply to author
Forward
0 new messages