So a little background story:
I need to migrate forums from a legacy solution (CollabNet Teamforge) to Discourse. Couple of thousand users, maybe a hundred thousand posts in tens of thousands of topics, in a couple of hundred discussion forums (equivalent to Discourse categories). Since I have not found any existing solution, I am doing the development of the migration tool myself.
What I can do, basically, is retrieve every post via SOAP API and insert them into the Discourse DB directly. I have done that, but I can see that the user statistics is a mess (does not reflect reality), and user tagging does not seem to be working properly either.
I am assuming that creating a user is not very complicated, just put them in the proper table and that is it. But how about when I insert a post into a database? Which tables should I update to avoid the above mentioned issues?