Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66872

Allow use of uninstall_plugin in upgrade code

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.8
    • Fix Version/s: None
    • Component/s: Installation
    • Labels:
      None
    • Affected Branches:
      MOODLE_38_STABLE

      Description

      From Eloy's comment,

      Z) Proceeding with custom removal code like this is really error prone. What if the block has files, or tags, or logs, or anything else. We should be able to use plugin_manager / uninstall_plugin() in upgrade code. Sort of verify that everything works and whitelist it for allowing its use. It's a pity that we have a good API to remove plugins and cannot use it un upgrade.php. So +1 to consider that option at some point (another issue).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              peterdias Peter Dias
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: