XF 2.0 How can we lower the version number of an add-on?

AndyB

Well-known member
When developing an add-on I sometimes use others to help test it. So I will "bump" the version number as changes are made. Then once the add-on is done testing I would like to increment to the next public version number (another words lower the version number). Is there a way I can lower the version number?

Sure would be nice if the following command allowed lowering the version number:

php cmd.php xf-addon:bump-version
 
You should use the version_id field as the field that gets bumped after changes and the version_string field for front facing version numbers.
 
You should use the version_id field as the field that gets bumped after changes and the version_string field for front facing version numbers.

I like to keep things simple, so I use the following format as an example:

version_string = 1.0
version_id = 10

version_string = 1.1
version_id = 11

etc...
 
You can use xf xf-addon:bump-version -f [addon_id]

BUT if you make it lower people won't be able to "upgrade" to it because it'll be considered a downgrade.
 
You can use xf xf-addon:bump-version -f [addon_id]

BUT if you make it lower people won't be able to "upgrade" to it because it'll be considered a downgrade.


Thank you, Jake. The -f switch worked perfect.

Here's an example where I change the add-on from v1.6 to 1.4.
Code:
php cmd.php xf-addon:bump-version Andy/AffiliateManager -f --version-id 14 --version-string 1.4
 
Back
Top Bottom