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](https://cdn.answeroverflow.com/1254725041568878672/shot_2024-06-24_at_09.41.57.jpg)
![No description](https://cdn.answeroverflow.com/1254725041866801252/shot_2024-06-24_at_09.42.14.jpg)
5 Replies
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?
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
Hi @iero
once you have deactivated the field, you can erase it from the "Inactive" section in the product:
Oh! Thanks @marie I didn't know that!
Thanks for the feedback, we will try to make that clearer !