PDA

View Full Version : upgrade components/modules


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

Alikon
16.06.2004, 16:34
Hi,
i think that a possible way for resolve the upgrading problem, is quite simple, every developer have to plan not only the new code but have to provide same sql script for providing secure upgrade....