Prevent table deletion when uninstalling a plugin

Re: Prevent table deletion when uninstalling a plugin

by Andrew Lyons -
Number of replies: 0
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

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 :/