Hi,
Is it possible at all to update a db table when de-activating a plugin?
Some plugins create an own db table and it would be great if this table is deleted when a plugin is deativated. Keeps the db clean :D
Greetz
Hi,
Is it possible at all to update a db table when de-activating a plugin?
Some plugins create an own db table and it would be great if this table is deleted when a plugin is deativated. Keeps the db clean :D
Greetz
Not as far as I know. It depends if there is a plugin_deactivate hook and if bb keeps data on plugins (and their tables), which I both doubt.
For WP I think I saw a plugin which had a clean up tables button or something, so you could clean up before deactivating. Come to think of it ... I never did clean up before deactivating. >_<
Perhaps this plugin_deactivate hook is a nice idea to add?
Then something in the plugin:
on deactivation -> drop table x OR drop row x
made a trac for this
Hey, that sounds like a great idea. The ability for plugins to automatically clean up after themselves ... fantastic!
You must log in to post.