Hey again, Lisa…
[UPDATED below…]
Well, I thought I was very clever, having spotted all the tables that need to be hit—until I got to exp_relationships.
Ack! What a nightmare!
rel_id rel_parent_id rel_child_id rel_type rel_data reverse_rel_data
5 6 5 blog a:3:{s:5:"query";O:8:"DB_Cache":5…
...and that rel_data field data goes on for about a gajillion characters(!).
It almost looks as though—in order to create a relationship—EE redundantly stores the entire rest of the database in each of the rel_data fields. *gulp* 😉
Please tell me I only have to insert a minimal amount of data—like rel_id, rel_parent_id, rel_child_id and rel_type—and let EE fill in the rest…?
Otherwise, I might have to use the CP’s Edit form to individually choose 867 relationships.
Oy! The menu! 😊
Any hope for importing relationships?
————————-
Update:
————————-
Found this in core.functions.php:
function clear_caching($which, $sub_dir = '', $relationships=FALSE)
{
(blah, blah, blah…)
case 'relationships' : $DB->query("UPDATE exp_relationships SET rel_data = '', reverse_rel_data = ''");
I definitely ain’t no PHP guru, but clear_caching is only clearing the last two columns… So that makes me think all that complex data in rel_data (and reverse_rel_data when appropriate) is temporary, cached data, and not vital to the relationship.
And that leads me to believe all I need to insert is the first 4 columns.
Yes?
I’m still hoping a cookie is coming my way…
😉