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

Increase main/plugin versions incrementally during upgrade

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.9
    • Component/s: General
    • Labels:
      None
    • Affected Branches:
      MOODLE_17_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      The new upgrade code tracks progress of upgrade and prevents further execution if error occurs. The problem is that when you rerun the upgrade after fixing the code the upgrade before the error is executed again - it could be solved by adding some fuction

      upgrade_track_status($plugin, $version, $success)

      if success true it would set $version in config table and return, if not it would print error message indicating exact version where the error occurred and return.

      Benefits:

      • prevented possible damage from running the same upgrade blocks second time
      • user would only see the "real" even during second run of upgrade
      • easier debugging when exact version number displayed with error

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              skodak Petr Skoda
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08