Opened 3 years ago

Closed 3 years ago

#33563 closed Bug (fixed)

Unapplying ContentType migration 0002 does not populate legacy name field on non-default database

Reported by: Hameed Gifford Owned by: Hameed Gifford
Component: contrib.contenttypes Version: 4.0
Severity: Normal Keywords: migrations
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

Description

Given a database with the alias other that has all contenttypes migrations applied, roll the state back to initial:

$ manage.py migrate --database=other contenttypes 0001

All ContentType rows in the other database will be null instead of their intended value.

Change History (4)

comment:1 by Hameed Gifford, 3 years ago

Has patch: set
Owner: changed from nobody to Hameed Gifford
Status: newassigned

comment:2 by Mariusz Felisiak, 3 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Mariusz Felisiak, 3 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by GitHub <noreply@…>, 3 years ago

Resolution: fixed
Status: assignedclosed

In 58d357fc:

Fixed #33563 -- Fixed contenttype reverse data migration crash with a multiple databases setup.

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