[Django] #26437: Command "makemigrations" don't create migration if non abstract class empty

3 views
Skip to first unread message

Django

unread,
Mar 31, 2016, 3:35:01 PM3/31/16
to django-...@googlegroups.com
#26437: Command "makemigrations" don't create migration if non abstract class
empty
----------------------------------------------+--------------------
Reporter: Atterratio | Owner: nobody
Type: Uncategorized | Status: new
Component: Database layer (models, ORM) | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
I have some code like this:
{{{
class MyModel(models.Model):
pass
}}}

I expect, that it create table with fields of parrent class. If I run
"makemigrations" in output I have "No changes detected", but "migrate
--run-syncdb" create tabels.

--
Ticket URL: <https://code.djangoproject.com/ticket/26437>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 31, 2016, 3:41:20 PM3/31/16
to django-...@googlegroups.com
#26437: Command "makemigrations" don't create migration if non abstract class
empty
-------------------------------+--------------------------------------

Reporter: Atterratio | Owner: nobody
Type: Uncategorized | Status: new
Component: Migrations | Version: 1.9
Severity: Normal | 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 Atterratio):

* needs_better_patch: => 0
* component: Database layer (models, ORM) => Migrations
* needs_tests: => 0
* needs_docs: => 0


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

Django

unread,
Mar 31, 2016, 3:59:36 PM3/31/16
to django-...@googlegroups.com
#26437: Command "makemigrations" don't create migration if non abstract class
empty
-------------------------------+--------------------------------------
Reporter: Atterratio | Owner: nobody
Type: Uncategorized | Status: closed
Component: Migrations | Version: 1.9
Severity: Normal | Resolution: invalid
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 Atterratio):

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


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

Reply all
Reply to author
Forward
0 new messages