XF 2.0 Updating Add-On

BoostN

Well-known member
I've installed my add-on on a new install on my localhost. It installed fine, but I want to make some updates to to it..

My steps:

1) Make changes to the add-on
2) Bump up version

Do I just need to rebuild the addon with this command to capture everything? In this case, all I've done is make code changes. I didn't edit any options/listeners/etc..
Code:
php cmd.php xf-addon:build-release
 
Yes, that command will build the final release from the data in the DB (which hasn't changed) along with the files (which would have changed).
 
Why am I getting this message?

Do I need to do something else besides bump by addon version and build the release?

I'm updating an add-on on a 2nd (test) install to validate the upgrade goes ok.

upgradeWarning.webp

I deleted a class extension and added a new one, along with some options.. Everything else was code related changes.
 
If you have development mode enabled, it's assumed that the development data is the most recent data; the XML that is used when a "normal" user installs your add-on is only updated if you explicitly export it (or build a release which exports it).

This warning is telling you that if you continue installing via the web interface, it will import via the XML which may not be up to date and this could cause data loss.

If you have development mode enabled, you'd generally want to use the CLI commands for add-ons.
 
Back
Top Bottom