Bit of a general developer question.
I'm often switching between git branches on Totara projects, but this means the versions for the plugins/modules often get out of synch with the database.
Say I'm working on plugin A in git branch A which is version 20120217. The database now has 20120217 as the version for plugin A.
I now need to work on plugin B in branch B. So I switch git branches, but the version in the plugin A code will probably be an earlier version to the one in the database, eg 20120214.
So I get an error message saying
"Version mismatch: plugin A can't downgrade 20120217 -> 20120214 !"
So to work around it, I look for the version in mdl_config and change it to the earlier version.
update mdl_config
set value='20120217'
where name = 'local_plugina_version'
I just wondered what other developers do to get around this?