omerten
16.06.2004, 06:43
Hola,
I'm frequently upgrading components/modules if there's a new version available, or - in case of my own components - release new bugfixed or enhanced versions. Usually it's necessary to uninstall and re-install the component, which means loosing all the data (configuration files, database entries etc...) Is there a (common) way to provide upgrades, which preserve existing data? I'm thinking about something like:
if (existsComponent($newComponent))
doUpgrade($oldVersion, $newVersion);
else
doInstall ($newVersion);
Any ideas how to do that? Is something like that planned for future MOS-Versions?
regards,
Oli
I'm frequently upgrading components/modules if there's a new version available, or - in case of my own components - release new bugfixed or enhanced versions. Usually it's necessary to uninstall and re-install the component, which means loosing all the data (configuration files, database entries etc...) Is there a (common) way to provide upgrades, which preserve existing data? I'm thinking about something like:
if (existsComponent($newComponent))
doUpgrade($oldVersion, $newVersion);
else
doInstall ($newVersion);
Any ideas how to do that? Is something like that planned for future MOS-Versions?
regards,
Oli