News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Boards and messages tables relationship

Started by urielmx, August 16, 2017, 03:12:40 PM

Previous topic - Next topic

urielmx

Do anyone know how are boards and messages table related on the database  schema?

I explain: I uploaded a backup that was full of spam and avoided all the spam messages. All was ok, but now the boards says that I have thousands of replays that doesn't exists anymore.

Can anyone help me to build a query to delete all the orphan posts? (if they exists, cause may be is just a number that I have to update)

Thanks in advance

Arantor

Use the maintenance tools in the admin area, they can deal with this correctly.

urielmx

Thanks a lot, Arantor! Also, I found the table that creates the relationship is "topics"

Arantor

...sort of. It's not a simple relationship.

Kindred

and deleting message directly in the database is ***NOT*** recommended, specifically because of the complex associations
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: