Although the latter case eventually hits every project, I'd prefer the
former.
--
Ticket URL: <https://code.djangoproject.com/ticket/23953>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Based on your logic, is it irritating to have `0001_initial` and
`0001_squashed_0002_auto_20141202_1234`? Should the first squashed
migration be `0003_...`?
--
Ticket URL: <https://code.djangoproject.com/ticket/23953#comment:1>
Comment (by MarkusH):
I don't think so. The squashed migration replaces `0001` to `0002`, so
sticking to `0001` seems fine to me.
Rethinking the initial thought about `0002_auto_20141202_2345` making
sense if `0002_auto_20141202_1234` is gone an only the squashed migration
is around: no, it doesn't make sense. The squashed migration says "0001 to
0002 is squashed". Thus continuing with `0003` seems to be the right
choice.
--
Ticket URL: <https://code.djangoproject.com/ticket/23953#comment:2>
* stage: Unreviewed => Accepted
Comment:
I guess it makes sense. If there is no way to reset the sequence of
migrations, I wonder what happens when app has 10K migrations.
--
Ticket URL: <https://code.djangoproject.com/ticket/23953#comment:3>
* status: new => assigned
* owner: nobody => proitm
--
Ticket URL: <https://code.djangoproject.com/ticket/23953#comment:4>
* owner: nobody => Jacob Walls
* status: new => assigned
* has_patch: 0 => 1
* easy: 0 => 1
Comment:
[https://github.com/django/django/pull/14983 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/23953#comment:4>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/23953#comment:5>
* needs_better_patch: 1 => 0
Comment:
Thanks for speedy review. Of course let me know if this is moving in the
wrong direction. Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/23953#comment:6>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/23953#comment:7>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"15683cdb95eb471f801bd15aca47348f9bb6cba5" 15683cd]:
{{{
#!CommitTicketReference repository=""
revision="15683cdb95eb471f801bd15aca47348f9bb6cba5"
Fixed #23953 -- Made makemigrations continue number sequence for squashed
migrations.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23953#comment:9>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"6e4ac28af0ce52f770d62e6dcda29bc9dda713af" 6e4ac28a]:
{{{
#!CommitTicketReference repository=""
revision="6e4ac28af0ce52f770d62e6dcda29bc9dda713af"
Refs #23953 -- Added MigrationAutodetector.parse_number() tests.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23953#comment:8>