Populating a forum with devel

Submitted by Michelle on Sun, 11/25/2007 - 19:17

In working on the advanced forum module, I needed a full forum to work on. I used the devel module and ended up with forums full of "this post has been moved". It turns out that devel doesn't fill in forum.tid. So I needed to run this SQL:

update forum
inner join term_node on forum.nid = term_node.nid
set forum.tid = term_node.tid

Unfortunately, the devel module doesn't create the forum structure, so I had to do that part by hand. It also creates posts for forum containers, so I had to go in and clean that out. A bit of a pain, but easier than creating a ton of dummy posts by hand.

Michelle