2010-11-24, 06:31 AM
It would be nice if we could get support for plugin upgrades.
1) add to array key "version" to the "plugins" cache so that any installed (active or not) is listed as the "key" with the version as the "value"
example:
plugins['active']['helloworld']="helloworld"
plugins['version']['helloworld']="1.0.0"
2) add support to run an upgrade function from the ACP >> Plugins page
example:
Deactivate - Uninstall - Upgrade
and choosing Upgrade would run plugin_upgrade() so we can compare the version from the plugins cache to the version in plugin_info() and run the appropriate upgrade code.
once the plugin_upgrade() code is finished, MyBB would then update the plugin cache to the new version number from plugin_info()
1) add to array key "version" to the "plugins" cache so that any installed (active or not) is listed as the "key" with the version as the "value"
example:
plugins['active']['helloworld']="helloworld"
plugins['version']['helloworld']="1.0.0"
2) add support to run an upgrade function from the ACP >> Plugins page
example:
Deactivate - Uninstall - Upgrade
and choosing Upgrade would run plugin_upgrade() so we can compare the version from the plugins cache to the version in plugin_info() and run the appropriate upgrade code.
once the plugin_upgrade() code is finished, MyBB would then update the plugin cache to the new version number from plugin_info()