[Django] #25983: annotate migrations with Django version

9 views
Skip to first unread message

Django

unread,
Dec 24, 2015, 6:25:24 AM12/24/15
to django-...@googlegroups.com
#25983: annotate migrations with Django version
-------------------------------+--------------------
Reporter: sir-sigurd | Owner: nobody
Type: Uncategorized | Status: new
Component: Migrations | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
As we know different Django versions could create and apply migrations in
the different way. It appears that in some cases things could work but
state is broken (see #23521). It might be helpful to know what version of
Django generated and applied specific migration to understand after a
while why things are broken.

I propose to add version info to migration files and table.

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

Django

unread,
Dec 24, 2015, 6:25:26 AM12/24/15
to django-...@googlegroups.com
#25983: annotate migrations with Django version
-------------------------------+--------------------------------------
Reporter: sir-sigurd | Owner: sir-sigurd
Type: Uncategorized | Status: assigned
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 sir-sigurd):

* owner: nobody => sir-sigurd
* needs_docs: => 0
* status: new => assigned
* needs_tests: => 0
* needs_better_patch: => 0


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

Django

unread,
Dec 24, 2015, 7:24:41 AM12/24/15
to django-...@googlegroups.com
#25983: annotate migrations with Django version
-------------------------------+--------------------------------------
Reporter: sir-sigurd | Owner: sir-sigurd
Type: Uncategorized | Status: assigned
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
-------------------------------+--------------------------------------

Comment (by timgraham):

As far as the migration files go, is this different from #25259 in Django
1.9?

I think you'll need to expand a bit on the rationale to add a new column
to the `django_migrations` table (and probably propose it on the
DevelopersMailingList).

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

Django

unread,
Dec 28, 2015, 11:28:11 AM12/28/15
to django-...@googlegroups.com
#25983: annotate migrations with Django version
-------------------------------+--------------------------------------
Reporter: sir-sigurd | Owner: sir-sigurd
Type: Uncategorized | Status: closed
Component: Migrations | Version: 1.9
Severity: Normal | Resolution: needsinfo
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 timgraham):

* status: assigned => closed
* resolution: => needsinfo


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

Reply all
Reply to author
Forward
0 new messages