XF 2.0 Is there an uninstall vs purge option somehow?

Vekseid

Active member
I'm making my first addon (adding a bunch of functionality to conversations), and I was wondering about this looking at the Setup file. I add a number of columns, and normally, in the event that I uninstall it, I don't want to delete them.

On the other hand, if I release this publicly, it would be good to somehow provide the ability to remove the added columns.
 
That's what the uninstall steps are for when you make the Setup file. If you uninstall and don't delete them it doesn't make much sense because those tables/columns are exactly where your add-on is functioning from so not deleting them wouldn't do much good. Without the tables/columns the add-on is practically pointless. When developing an add-on you can run the install/uninstall steps manually anytime you want and delete any of the tables/columns without deleting your php code. Even if you uninstall the add-on, the php code doesn't get deleted from the server unless you delete it yourself. But yes uninstalling the add-on without deleting the database entries doesn't make much sense to me. Maybe someone else would think otherwise but it's not realistic IMO.
 
Back
Top Bottom