The forum has an installation script and a number of upgrade scripts.
For a new installation it will first run the highest script version (0.0.1.6) from the folder
/Setup/applications/forums/SchemaInstallScripts/mssql/0.0.1.6.config
after that it will run all the scripts with a higher version in sequence from
/Setup/applications/forums/SchemUpgradeScripts/mssql/
starting with 0.0.1.7 and continuing through 0.0.2.0
the 0.0.1.9 script is the one that updated the procedure mp_FuromsThreads_SelectOne to include ModuleID
So when cloning a feature one could copy and modify all the upgrade scripts but if there are a lot of them it can be cleaner to generate your own up to date script based on the current schema rather than replicating the upgrade history of the original feature.
Hope that helps,
Joe