[Django] #24901: makemigrations should create empty migrations dir for any installed app without it

18 views
Skip to first unread message

Django

unread,
Jun 2, 2015, 7:36:49 PM6/2/15
to django-...@googlegroups.com
#24901: makemigrations should create empty migrations dir for any installed app
without it
--------------------------------------+--------------------
Reporter: coldmind | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Migrations | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
Since django is not supporting apps without migrations in master,
`makemigrations` should create empty migrations dir for any installed app
without it, because it is ignoring applications if one use `manage.py
makemigrations` without explicit providing of application name.

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

Django

unread,
Jun 2, 2015, 7:40:03 PM6/2/15
to django-...@googlegroups.com
#24901: makemigrations should create empty migrations dir for any installed app
without it
--------------------------------------+------------------------------------

Reporter: coldmind | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* needs_docs: => 0
* needs_better_patch: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted


Comment:

But don't create a migrations directory unless the app has models.

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

Django

unread,
Jun 3, 2015, 3:21:27 AM6/3/15
to django-...@googlegroups.com
#24901: makemigrations should create empty migrations dir for any installed app
without it
--------------------------------------+------------------------------------

Reporter: coldmind | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by MarkusH):

We haven't really deprecated apps without migrations (no deprecation
warning in either 1.7 or 1.8). Although we have documented it I'm not sure
we can make the change for 1.9.

We also need to figure out a way of how to run the tests without explicit
migrations. Once we're there I think we're ready for apps without
migrations.

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

Django

unread,
Jun 3, 2015, 7:49:00 AM6/3/15
to django-...@googlegroups.com
#24901: makemigrations should create empty migrations dir for any installed app
without it
--------------------------------------+------------------------------------

Reporter: coldmind | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by MarkusH):

After a talk with Andrew at DjangoCon Europe:

Given #24481 and how that plays in with our test apps, we might reconsider
dropping support for apps without migrations.

At some point (2.0 would be a good candidate to justify increasing the
major version number ;) ) we should automatically create the `migrations`
package.

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

Django

unread,
Jun 4, 2015, 11:50:40 AM6/4/15
to django-...@googlegroups.com
#24901: makemigrations should create empty migrations dir for any installed app
without it
--------------------------------------+------------------------------------

Reporter: coldmind | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by coldmind):

After discussion with Markus, we should postpone this until the result of
#24481

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

Django

unread,
Jun 4, 2015, 1:50:15 PM6/4/15
to django-...@googlegroups.com
#24901: makemigrations should create empty migrations dir for any installed app
without it
-------------------------------------+-------------------------------------
Reporter: coldmind | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Someday/Maybe

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

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

* stage: Accepted => Someday/Maybe


--
Ticket URL: <https://code.djangoproject.com/ticket/24901#comment:5>

Django

unread,
Mar 12, 2024, 4:54:01 AM3/12/24
to django-...@googlegroups.com
#24901: makemigrations should create empty migrations dir for any installed app
without it
-------------------------------------+-------------------------------------
Reporter: Andriy Sokolovskiy | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Migrations | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Someday/Maybe
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Ülgen Sarıkavak):

* cc: Ülgen Sarıkavak (added)

--
Ticket URL: <https://code.djangoproject.com/ticket/24901#comment:6>
Reply all
Reply to author
Forward
0 new messages