--
Ticket URL: <https://code.djangoproject.com/ticket/34632>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: Jacob Walls (added)
* status: new => closed
* resolution: => wontfix
Comment:
Thanks for the report (partly related with #34436), however, this is a
documented and intended change.
> Furthermore if the command is run in a pipeline it is not possible to
know for certain if the command failed because of a wrongly set up
pipeline job or if a migration is actually missing.
You can always check a status code. I don't think outputting an error
message will improve it somehow.
Please first start a discussion on the DevelopersMailingList, where you'll
reach a wider audience and see what other think, and
[https://docs.djangoproject.com/en/stable/internals/contributing/triaging-
tickets/#closing-tickets follow the triaging guidelines with regards to
wontfix tickets].
--
Ticket URL: <https://code.djangoproject.com/ticket/34632#comment:1>
Comment (by David Sanders):
This is also related to #34457: makemigrations --check no longer prints
the changes.
> A possible solution could be to make the flag --check imply the flag
--dry-run
This is what I was proposing in my PR :P
--
Ticket URL: <https://code.djangoproject.com/ticket/34632#comment:2>
Comment (by Jakob Probst):
Did you you open a discussion on the developer mailing list?
--
Ticket URL: <https://code.djangoproject.com/ticket/34632#comment:3>
Comment (by David Sanders):
Replying to [comment:3 Jakob Probst]:
> Did you you open a discussion on the developer mailing list?
Nope, feel free to start a discussion 👍
--
Ticket URL: <https://code.djangoproject.com/ticket/34632#comment:4>
Comment (by Lukas von Allmen):
We encountered the same issue as we used the command in our gitlab
pipeline and relied on the output to inform the developer what went wrong.
We solved it like this:
{{{
test:
script:
- ...
- pipenv run python manage.py makemigrations --check || echo "Your
models have changes that are not yet reflected in a migration. Run
'manage.py makemigrations' to make new migrations, and then re-run
'manage.py migrate' to apply them." && false
- ...
}}}
But I guess it's a bit too specific for adding to the documentation.
--
Ticket URL: <https://code.djangoproject.com/ticket/34632#comment:5>