You can read here about incremental upgrades Explanation: upgrading Openfire
Although, you can probably download all sql upgrade scripts and run them manually against your database. But i would just do full Openfire updates. https://github.com/igniterealtime/Openfire/tree/master/distribution/src/database/upgrade