Opened 9 years ago

Closed 9 years ago

#25793 closed Bug (duplicate)

Removing an MTI model generates an incorrect migration

Reported by: Ned Batchelder Owned by: nobody
Component: Migrations Version: 1.8
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 (last modified by Ned Batchelder)

I had a model that inherited from two other models but added no fields of its own. When I removed the model and generated the migration, it was an invalid migration. It deleted each field individually, and then dropped the table. The problem is that you cannot drop the last field in a table, so the migration will not run.

A demonstration is at https://github.com/nedbat/django_issue_25793

Change History (2)

comment:1 by Ned Batchelder, 9 years ago

Description: modified (diff)

comment:2 by Tim Graham, 9 years ago

Resolution: duplicate
Status: newclosed
Type: UncategorizedBug

Looks like a duplicate of #24424.

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