Changes between Version 3 and Version 4 of Ticket #29574, comment 9
- Timestamp:
- Nov 11, 2022, 11:18:50 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29574, comment 9
v3 v4 3 3 2. Now when we run second migration, table A is created and B is recreated with field {{{a_ptr}}} as primary key and all the old fields of B are deleted(even{{{id}}}). No changes for table C. 4 4 3. Since {{{c.fk}}} still points to {{{b.id}}} (at physical level), it throws {{{foreign_key_mismatch}}} error. 5 4. If we explicity define primary key in model B everything works as expected. 5 4. If we explicity define primary key in model B everything works as expected.(temporary solution) 6 6 {{{ 7 7 bid = models.IntegerField(primary_key=True)