Update Belongs to One to Has many

Hello all, In my datamodel, I have relations Belongs to one (attached). I would like to update this field "Has many". in this example, a People could have founded several Companies. Is it feasible in the DB directly or will I break everything? Thanks
No description
No description
5 Replies
marie
marie5mo ago
Hi @iero , it is not possible to update the field to change the relation direction. Could you consider erasing this relation field and creating a new one?
greg [iero]
greg [iero]OP5mo ago
Hi @marie Thanks for your reply Yes I can do that, but can I erase the relation field? When I try that it is just desactivated and so I cannot recreate one with the same name
marie
marie5mo ago
Hi @iero once you have deactivated the field, you can erase it from the "Inactive" section in the product:
greg [iero]
greg [iero]OP5mo ago
Oh! Thanks @marie I didn't know that!
marie
marie5mo ago
Thanks for the feedback, we will try to make that clearer !
Want results from more Discord servers?
Add your server