View Full Version : rolling back
rjfioravanti
11-12-2007, 01:10 PM
Is it possible to perform a rollback during a post-patch step, after the patch is applied? Say I want to do something like register activeX controls after the patch is applied, and if registering one of them fails, how do I rollback to the previous version?
Lorne
11-12-2007, 01:51 PM
Do you want to rollback the entire patch, or only the activex files?
If it's the individual files, you could do it directly using actions, e.g. File.Install.
rjfioravanti
11-12-2007, 01:56 PM
Do you want to rollback the entire patch, or only the activex files?
I want to rollback the entire patch
Thanks
Lorne
11-12-2007, 02:19 PM
There is no programmatic way to force a rollback at this point, but I've added it to our list of suggestions (REF: 16976).
johnbrock
07-02-2008, 12:01 PM
In order to support rollback capabilities for a patch that installs correctly, ie no errors in the patch process itself, but maybe the patch hadn't been fully tested and there are functional issues that would cause the need to rollback to the previous version.
Assume that a patch to take version 1.5 is applied to make the verison 1.6. Could we not reverse the patch from and to so as to create a patch from 1.6 to 1.5 and have essentially a rollback? Is there anything in VP3 that would cause this strategy not to work?
Lorne
07-03-2008, 01:35 PM
Assume that a patch to take version 1.5 is applied to make the verison 1.6. Could we not reverse the patch from and to so as to create a patch from 1.6 to 1.5 and have essentially a rollback?Yep, that should work fine, assuming you build the rollback as a separate patch.
You wouldn't be able to have both 1.5 and 1.6 as user-selectable targets in a single full-history patch -- so, you couldn't roll back from 1.6 to 1.5 using the same patch file that was used to go from 1.5 to 1.6.
But you could easily make a separate "rollback" patch that patches 1.6 to 1.5.
(In fact you could make a rollback patch to handle 1.6 to 1.5 and also handle 1.4 to 1.5, 1.3 to 1.5, and so on.)
All you have to do to make your rollback patch is change the order of the version tabs, so that 1.5 comes after 1.6.
VP uses the order of the version tabs to indicate newness -- by default it assumes the rightmost tab is the latest version. The actual version numbers don't matter -- they're just labels for the versions.
If you're building full-history patches, you can keep the "bad" 1.6 in the history if you want...just rename its version tab (and perhaps also the source folder) so you don't confuse it with the version tab for the "good" 1.6 that you'll add later.
Nice thinking btw, johnbrock. Doing the "rollback" as a patch from 1.6 to 1.5 is a really elegant solution.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.