{{{
Conflicting migrations detected [0001_migration_a, 0002_migration_b]. To
fix them run python manage.py makemigrations --merge
}}}
I believe that it is hard to find the cause of this error without looking
at the implementation of the checker
(https://github.com/django/django/blob/bc77eb6d0858652e197c08c299efaeb06c51efee/django/db/migrations/loader.py#L325).
I suggest that we change "Conflicting migrations detected" to something
like "There can only be one migration which are not depended upon by
another migration". I would be happy to submit a PR.
--
Ticket URL: <https://code.djangoproject.com/ticket/25047>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* component: Core (Management commands) => Migrations
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
Do you think something like "Conflicting migrations detected (multiple
leaf nodes in the migration graph)." would be better?
--
Ticket URL: <https://code.djangoproject.com/ticket/25047#comment:1>
* owner: nobody => mossplix
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/25047#comment:2>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/5165 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/25047#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/25047#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"45ed19de687d324d3ba852eea93b1afa575e482f" 45ed19de]:
{{{
#!CommitTicketReference repository=""
revision="45ed19de687d324d3ba852eea93b1afa575e482f"
Fixed #25047 -- Improved "Conflicting migrations" error message.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25047#comment:5>