Here are the manual steps I took in the database (what I'm trying to automate).
- Added an entry to the xf_node_type table with all appropriate details.
- Added a corresponding record into the serialized array in the nodeTypes row of the xf_data_registry table by manipulating the BLOB very meticulously.
I've read that it may be safe to just delete the nodeTypes row and wait for XenForo to regenerate it in the registry, but that seems either irresponsible or unreliable to me, and I wouldn't want to do it without a clear understanding of the consequences.
Obviously it's possible to unserialize the BLOB array, add in what's necessary, and then push it back to the row via SQL, but that seems really cumbersome.
Is there a canonical way to update the row I need to update or the whole registry?
For reference, even after completing step 1 my add-on would not work until I completed step 2; XF did not automatically update the registry for me.
Hopefully this isn't a really obscure question.