What is the purpose of module UpgradeToXX?

Topics: Administration, General
Feb 1, 2013 at 12:46 PM
Hi, I see that in every Orchard release there is a module called UpgradeTo<Version>and by default is disabled. What is the purpose of this module, when it must be enabled?
Feb 1, 2013 at 12:53 PM
When a release has changes that require special steps to migrate an existing orchard instance from the older version, these UpgradeFromXX modules are created to handle that. Typically it's for shuffling data around, or when a Part is eliminated or replaced with another. For example, when the RoutePart was replaced with Autoroute (I think in 1.4), the UpgradeFromXX module replaced all RouteParts with corresponding AutorouteParts.
Feb 1, 2013 at 1:13 PM
Thank you for your quick response. I think this is not mention in the documentation and it it's good to know that after every upgrade this module needs to be enabled so all upgrades are performed and then to be disabled, please correct me if I am wrong.
Coordinator
Feb 10, 2013 at 8:32 PM
You are wrong :) The migrations are automatically run.
Feb 11, 2013 at 10:05 AM
Thanks for the correction. :)