Jump to content

[Added]Do not drop tables on uninstall

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
10 replies to this topic

#1
rolandd

rolandd

    Learning Programmer

  • Members
  • PipPipPip
  • 43 posts
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 :p

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
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?

#3
rolandd

rolandd

    Learning Programmer

  • Members
  • PipPipPip
  • 43 posts

Quote

I've considered this. It is kind of a double edged sword.
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.

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

#4
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
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...

#5
Guest_Jordan_*

Guest_Jordan_*
  • Guests
An upgrade component would be a nice feature to have. This is one of the lacking features of Joomla IMO.

#6
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
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.

#7
eagle00789

eagle00789

    Newbie

  • Members
  • PipPip
  • 19 posts
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.

#8
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
We've fixed this in the upcoming ionFiles v3.

#9
eagle00789

eagle00789

    Newbie

  • Members
  • PipPip
  • 19 posts

TkTech said:

We've fixed this in the upcoming ionFiles v3.

is there a beta version available for download??

#10
TkTech

TkTech

    The Crazy One

  • Moderators
  • 1,396 posts
By tuesday it'll be completly done, please just wait.

#11
eagle00789

eagle00789

    Newbie

  • Members
  • PipPip
  • 19 posts
i was just asking because i'm curious to see how my suggestions have turned out. (p.s. i can also know how you feel, as i'm a software developer myself. always that same question of When Will it be released)