XF 2.2 Changing thread type on multiple threads

mjda

Well-known member
I have an add-on with a custom thread type but now I've found a better/easier way to handle some of the things I needed the custom thread type for so I'd like to change all those threads back to thread_type = 'discussion'. The question is, would I be fine changing them all with a simple query so I can change them all at once or do I need to use the entity->fastUpdate for each one?

If the latter, is there an easy way to do that in batches using Setup.php? I usually write something using the rebuild cache, just so it'll do things in batches but I'm assuming there must be a way to do that sort of thing in the Setup.php so it'll do it when I update the add-on instead of me having to manually go in and click a button to make it start?
 
Ask the add-on author if you remove it will they revert to discussions.
I wrote the add-on, and I have no idea. 😬

I know how to change them all back to discussions. I'm just wondering if it will mess something up if I do it with a raw query, all at once, or if I need to do them one by one using entity->fastUpdate.
 
Back
Top Bottom