I am currently developing a few openfire Plugins.
We got a staging server and a development server.
I recently did a lot of changes on the development system.
On the staging system the plugins database still is version 0… however, on the development system it is not version 4.
When I deployed the new plugin earlier today I noticed that the Database updates were not handled as expected.
I thought the plugin system would notice that the staging systems version is 0 and then perform the database upgrade starting at 1 -> 2 -> 3 and finally to 4.
What it did instead was to only use the upgrade script for version 4.
I had to manually add tables and triggers.
What is the best way to get this to work?
Thanks in advance.