Opened 6 hours ago

Last modified 4 hours ago

#35963 new Uncategorized

Add option to `makemigrations` to skip checking consistent history

Reported by: Curtis Maloney Owned by:
Component: Migrations Version: 5.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 (1)

comment:1 by David Sanders, 4 hours ago

Normally feature requests have to go through the forum, but I tend to think we should accept this:

  • I doubt the consistency check is useful in a CI context
  • Setting up a DB in CI is not always an option if you have no control over CI
  • It appears that skipping the consistency check is all that's required to get this to work (I did a basic test & confirmation)

Thoughts Sarah/Natalia/anyone else?

Version 0, edited 4 hours ago by David Sanders (next)
Note: See TracTickets for help on using tickets.
Back to Top