The Moodle standard uninstall process is that when the administrator removes a plugin, all the tables previously created by this plugin are deleted.
In my case, a new plugin, with another name, handles the same tables, so I want to prevent Moodle from deleting the tables.
Is there a clean way to do this?
- either by preventing the deletion process in the uninstall process of the "old"
- or by forcing Moodle to associate the tables with the new plugin
One way would be to have the new plugin depend on the old plugin, but a new version of the old plugin where the install.xml has been removed, and all other functionality removed. That wouldn't be removing the old plugin.
Alternatively you should probably be introdcing new tables and copying the content over :/