Closed yuliu closed 3 years ago
This PR is my initial though for the fix. It also could be fixed by having a similar cleanup()
function to other converter modules' ones, instead of adding a finish()
function, for more elegant coding. However, if the source data may be corrupted, for instance a forum from old database may not have a valid record of its parent forum, running the import_forums
converter module may result in SQL query errors.
Fix could be easier. The column field pid
is missing in forums base module..
Aims to fix #238 and has minor code improvement.
Since the order of forums to be merged is not consistent across modules, each one should take care of the scenario that in the
Converter_Module_Forums
a forum is merged before its parent forum can be merged.The first one to fix is SMF2 module.
Other modules are in the examination queue.The checklist is in this comment https://github.com/mybb/merge-system/issues/238#issuecomment-562741207