Opened 2 years ago

Last modified 22 months ago

#25255 new Bug

Squashed migration is not marked as unapplied

Reported by: Markus Holtermann Owned by: nobody
Component: Migrations Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description (last modified by Markus Holtermann)

When unapplying a squashed migration and the replaced migration files are still around, the MigrationExecutor mark the squash migration as unapplied, too, not only the replaced migrations.

Change History (7)

comment:1 Changed 2 years ago by Tim Graham

Triage Stage: UnreviewedAccepted

comment:2 Changed 2 years ago by Markus Holtermann

Description: modified (diff)
Summary: MigrationExecutor.check_replacements() doesn't take care of unapplied migrationsSquashed migration is not marked as unapplied

While working on #24800 I realized that the issue is actually not fully correct. The squashed migration is not marked as applied.

Last edited 2 years ago by Tim Graham (previous) (diff)

comment:3 Changed 2 years ago by Markus Holtermann

Has patch: set

comment:4 Changed 2 years ago by Tim Graham

Triage Stage: AcceptedReady for checkin

comment:5 Changed 2 years ago by Tim Graham

Patch needs improvement: set
Triage Stage: Ready for checkinAccepted

The commit this depends on is moved to "Work in progress" status, so moving this off the checkin queue.

comment:6 Changed 22 months ago by Sasha Gaevsky

Has patch: unset
Patch needs improvement: unset

Updated ticket, since original PR was closed.

comment:7 Changed 22 months ago by Tim Graham

Has patch: set
Patch needs improvement: set

"Has patch + Patch needs improvement" is the correct status.

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