Opened 4 months ago
Closed 4 months ago
#35963 closed New feature (duplicate)
Add option to `makemigrations` to skip checking consistent history
Description ¶
Whilst trying to set up a CI pipeline, I've run into the issue that makemigrations --cheeck
still tries to connect to the database.
This is a problem because my CI pipeline doesn't have a DB to connect to.
I would like the option to cheaply check within my CI pipeline that there aren't any obviously forgotten migrations; and "cheaply" here means "without spending the time + bandwidth to stand up a DB service".
Change History (2)
comment:2 by , 4 months ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Type: | Uncategorized → New feature |
Version: | 5.1 → dev |
Hello Curtis and David, thank you for your proposal and extra rationale. This feels like a duplicate of #33421 which in turn is an "almost" duplicate of #31504.
From looking at the code, the consistency check is skipped if the DB is not available. I'll close as dupe, but please feel free to add further rationale on either:
- how this is different from the linked tickets, or
- whether the solution provided in #31504 is not working for any reason.
Normally feature requests have to go through the forum, but I tend to think we should accept this:
Thoughts Sarah/Natalia/anyone else?
Edit: I guess the thing that would require discussing is: whether
--check
behaviour is updated or whether there'd be a new option… ?