Moodle
  1. Moodle
  2. MDL-26219

Insertion into upgrade_log table missing version information

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: Installation
    • Labels:
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Was performing some upgrade tests when realized that these inserts into upgrade_log:

      INSERT INTO mdl_upgrade_log
          (type,plugin,version,info,details,backtrace,userid,timemodified)
      VALUES
          (?,?,?,?,?,?,?,?)
      [array ( 0 => 0, 1 => 'mod_quiz', 2 => NULL, 3 => 'Plugin upgraded', 4 => NULL, 5 => '', 6 => '2', 7 => 1296549503, )]

      are missing the version information (NULL). savepoint version should be inserted instead afaik.

      Ciao

        Gliffy Diagrams

          Activity

          Hide
          Petr Skoda added a comment -

          Confirming, I have forgotten to update the code when switching to frankenstyle, working on a patch....

          Show
          Petr Skoda added a comment - Confirming, I have forgotten to update the code when switching to frankenstyle, working on a patch....
          Hide
          Helen Foster added a comment -

          Thanks guys!

          Show
          Helen Foster added a comment - Thanks guys!

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: