Hi,
Not sure how to handle this. Since Joomla doesn't support upgrading a component (at least not in the 1.x series) I am basically forced to uninstall the old component and install the new one. As it drops the tables, I lose all my settings and history.
So I would vote for not dropping the tables on uninstalling. That way it is not an element of surprise when you upgrade![]()
I've considered this. It is kind of a double edged sword. On one side it is easy to upgrade but then people say "it doesn't uninstall completely" and on the other side people can't upgrade.
After releasing several versions of ionFiles and having people unable to upgrade I think I am going to adopt this policy from now on.
Do you know if 1.5 will have an "upgrade" feature?
Absolutely true. I have the same problem with my component. I also decided rather to have the tables present than users losing their work. What I am considering but haven't looked at yet is make an option in my component to have the users drop the tables. After that they can uninstall the Joomla way.I've considered this. It is kind of a double edged sword.
As for 1.5 I thought I read somewhere that it does allow component upgrading but I can't find any information towards that. Just tried to do an upgrade in Joomla 1.5RC1 and it simply tells me the path is already in use. So I guess there is no upgrade.
Regards,
RolandD
I believe a hack for Joomla! is in order, to allow component upgrades based on the version information found in the install xml. Actually wouldn't be that hard...thinking...
An upgrade component would be a nice feature to have. This is one of the lacking features of Joomla IMO.
Yeah, I was thinking along the lines of having an additional install xml file in each package, which would be read by the component and act in place of the built in system.
i have seen some components with a small different approach. in the settings, you can choose if you want to remove all or keep the tables. Then, on component uninstall, (if selected) the tables are kept. this way, the user makes the choise to keep or remove the tables.
We've fixed this in the upcoming ionFiles v3.
By tuesday it'll be completly done, please just wait.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks