My suggestion would be to run any missing upgrades you did not do. Clearly by your error you did not just upgrade from 8.22 so you would need to run any required upgrades from the last version you ran to the latest.
Likewise if you where not running 8.22 then you most likely want to follow the normal upgrade procedure and upload all files except the 2 config files. You can find the documentation in the documentations folder of the downloaded code.
Our announcements cover upgrading from the last version forward.
I do have one question after the fact here as I deal with this issue alot.
I spent alot of time updating information on this site. All the documentation has been updated in the software for quite a while now. Our announcements give explicit instructions file changes version to version and whether there is an upgrade to run etc.
It seems I deal with people having issues upgrading alot where they forget to run upgrades or do not upload all the files. I am trying to understand what the problem is so I can make things easier and not have this issue. What is it that you specifically were confused about?