#29720: Validating migrations using manage.py
-------------------------------------+-------------------------------------
Reporter: Thomas Basche | Owner: nobody
Type: New feature | Status: closed
Component: Migrations | Version: 2.1
Severity: Normal | Resolution: invalid
Keywords: migrations, | Triage Stage:
manage.py, validation | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Thomas Basche):
* status: new => closed
* resolution: => invalid
Comment:
Replying to [comment:1 Tim Graham]:
> It's not clear to me what you're proposing. If I understand the scenario
you're describing, you'll get an error if you run `makemigrations
--check`. Is that insufficient?
> {{{
> $ python manage.py makemigrations --check
> CommandError: Conflicting migrations detected; multiple leaf nodes in
the migration graph: (0002_auto_201808429_2051, 0002_auto_20180829_2051 in
polls).
> To fix them run 'python manage.py makemigrations --merge'
> }}}
That is probably actually bang on. Cheers! Perhaps I should have read the
documentation a bit closer...
--
Ticket URL: <https://code.djangoproject.com/ticket/29720#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.9f39e0740f600a20eb9ab93f72b2f7d4%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.