Thank you for the link.
Since I’m still building the whole structure, I ended up just creating a new topic, copying and pasting the content from the old one, and delete the old topic. I only had 2 of those anyway.
So, my question is: is that rake task something I need to do every time I update Discourse? Or just when I restore (if I do it again in the future)?