Opened 6 years ago

Closed 4 months ago

#25250 closed Cleanup/optimization (fixed)

Better Indication of Squash Migration State in showmigrations

Reported by: Mark Lavin Owned by: Jacob Walls
Component: Migrations Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


In the discussion of #25231 ( it became clear that there was a disconnect between the current output of showmigrations and the actual recorded applied state of squashed migrations.

Currently if all of the replaced/original migrations have been run, showmigrations will output that the related squashed migration has been applied with an [X] in the output even if that has not yet been recorded by the migration recorder. However, it is currently a requirement that migrate be run to record this applied state for the squashed migration before the original migrations are removed. If a deployment process is looking for an empty [ ] to know to run the migration then this may trip it up.

This case is to consider an output for showmigrations which can indicate that this migration has only been "soft" applied, that is applied but not recorded yet.

Changes to the planner for such an output may also impact #24900.

Change History (6)

comment:1 Changed 6 years ago by Carl Meyer

Triage Stage: UnreviewedAccepted

comment:2 Changed 4 months ago by Jacob Walls

Owner: changed from nobody to Jacob Walls
Status: newassigned

comment:3 Changed 4 months ago by Jacob Walls

Has patch: set

comment:4 Changed 4 months ago by Mariusz Felisiak

Type: New featureCleanup/optimization

comment:5 Changed 4 months ago by Mariusz Felisiak

Triage Stage: AcceptedReady for checkin

comment:6 Changed 4 months ago by Mariusz Felisiak <felisiak.mariusz@…>

Resolution: fixed
Status: assignedclosed

In 2dfc106:

Fixed #25250 -- Clarified partially recorded state of squashed migrations in showmigrations --list.

Note: See TracTickets for help on using tickets.
Back to Top