Re: Recursive upgrade scripts
[email protected] (mikespub) Fri, 25 Apr 2003 20:00:12 GMT
| Newsgroups | gmane.comp.cms.xaraya.knowledge-base |
|---|---|
| Organization | not much |
| Message-ID | <[email protected]> |
In article <b8brch$o19$1-FogMEOs31dotat4ziPANHlKoq+OfwspIAL8bYrjMMd8@public.gmane.org>, "Jason Judge" <[email protected]> wrote: >... >There are other issues to bear in mind (such as error handling), but this >example illustrates one way in which recursion can be used to step through >as many historical upgrade steps as necessary to bring a module up to its >current version. Non-recursive methods can be used too. Actually, if you remove the break; statements in your switch, you don't need to go through recursive upgrades at all - it'll just "fall through" from the current version to the end, and execute all necessary upgrades one by one. Assuming you put them in the right order, of course :-) Mike.