I'm suggesting that `makemigrations --check` should just exit without
making migrations.
The choice to write the migrations anyway was not discussed AFAICT on
ticket:25604 or https://groups.google.com/g/django-
developers/c/zczdY6c9KSg/m/ZXCXQsGDDAAJ.
Noticed when reading
[https://github.com/django/django/pull/15845#issue-1305277307 PR to adjust
the documentation of migrate --check]. I think the current documentation
is silent on this question.
--
Ticket URL: <https://code.djangoproject.com/ticket/34051>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
I think this makes sense.
--
Ticket URL: <https://code.djangoproject.com/ticket/34051#comment:1>
* owner: nobody => Jacob Walls
* status: new => assigned
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/16116 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34051#comment:2>
* needs_better_patch: 0 => 1
* needs_docs: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34051#comment:3>
* needs_better_patch: 1 => 0
* needs_docs: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/34051#comment:4>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/34051#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"80d38de52bb2721a7b44fce4057bcff571afc23a" 80d38de5]:
{{{
#!CommitTicketReference repository=""
revision="80d38de52bb2721a7b44fce4057bcff571afc23a"
Fixed #34051 -- Made makemigrations --check exit before making migrations.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34051#comment:6>
Comment (by Daniel Hahler):
I was using `--check --dry-run` to see missing migrations on CI already,
which now becomes silent.
Would it make sense to have migrations still being written/printed in case
`--dry-run` is used.
Or is there another option to get the desired behavior on CI?
(You could use `--check` first an in case of exiting with 1 use `--dry-
run` alone, but I think the old behavior was good).
I am using also `-v3` to make it very verbose - maybe that could be taken
into consideration also.
--
Ticket URL: <https://code.djangoproject.com/ticket/34051#comment:7>
Comment (by Daniel Hahler):
Oh, addressed/fixed in #34457 already.
--
Ticket URL: <https://code.djangoproject.com/ticket/34051#comment:8>