Changes between Initial Version and Version 1 of Ticket #29574, comment 15


Ignore:
Timestamp:
Oct 15, 2024, 12:29:06 PM (4 weeks ago)
Author:
Calvin Vu

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29574, comment 15

    initial v1  
    1 It seems like Bhuvnesh correctly identified the cause. A potential solution would be to first set `C.fk` to `A.id` (which is going to be the `id` of model 'AB', i.e., the separate tables A and B, which are connected one-to-one with `B.a_ptr_id` when model A is made concrete), then change model B to inherit from model A (to form model 'AB'), and then update any existing data.
     1It seems like Bhuvnesh correctly identified the cause. A potential solution would be to first set `C.fk` to `A.id` (which is going to be the `id` of model 'AB', i.e., the separate tables A and B, which are connected one-to-one with `B.a_ptr_id` when model A is made concrete), then change model B to inherit from model A (to form model 'AB'), and then update any existing data. Alternatively, we could also set `C.fk` to `B.a_ptr_id` as it is also a primary key.
Back to Top