Hi, I'm migrating my website towards the new relationships structure.
the migration went fine.
In the old structure I created intermediate posts myself. These are now migrated to 1 to many's.
I'm now cleaning it all up, and making the structure simpler and taking benefit of the toolset many-to-many new approach.
I have a few questions around this, to define the right approach and what to test.
First, I'll create a new relationship (to re-establish the many to many relationship as I had it before).
For this I'll create the relationships without intermediate post, so I can re-import the old data using wpallimport.
Next I want to delete the migrated relationship posts.
Will this delete all old data (metadata and rows in association tables)?
Next I think, I have to verify all the views, that used the custom post types and relations, and change them to show the related records the new way.
Anyhting I'm forgetting, overlooking?
Note: I'm not using the new toolset blocks. My website works with elementor and makes use of the views to retrieve the data.
Next I want to delete the migrated relationship posts.
Will this delete all old data (metadata and rows in association tables)?
When you say migrated relationship posts are you referring to the posts that were migrated to the new relationship ? If so then the old table structure will be converted to the new table structure so the old structure will no longer exist.
In the old structure, in the custom posts, there is a section post relationships (parent/child).
It looks like these are the ones that are in the new structure available in the relationship section, where it shows migrated next to the se 'new' relationships.
When I'm understanding correctly, this is the new structure, and all 'old' parent / child relationships are now in relationships.
In my old structure I had all relationships modelled as many to many, with custom posts as intermediate ones (as at the time that was the advised way to go)
That's what I ment with 'deleting' the old ones (relationships), they are now one to many and many to one to have the connection between two custom posts, through and intermediate custom post.
If I want to take benefit of the new structure, I need to create the relationships again, and remove (de-activate) the 'old' intermediate custom posts.
When I'm understanding correctly, this is the new structure, and all 'old' parent / child relationships are now in relationships.
Once you've done the relationship migration after updating to the latest version of Types, all your old relationship structure will be converted to the new structure.
Based on my understand you're saying that your converted relationships are no long Many to Many but now One to Many and some are Many to Many correct?
You should be able to edit the relationship structure for your One to Many relationships and change it to Many to Many.
If I want to take benefit of the new structure, I need to create the relationships again, and remove (de-activate) the 'old' intermediate custom posts.
This is an option you have to recreate the relationships.