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

Database error when doing a selective restore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: BACKEND
    • Component/s: Backup
    • Labels:
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_24_STABLE

      Description

      When restoring a course that exists and selecting to overwrite the existing we get:

      Duplicate entry '1024-25255' for key 'mdl_gradgrad_useite_uix'
      INSERT INTO mdl_grade_grades (userid,rawgrade,rawgrademax,rawgrademin,rawscaleid,usermodified,finalgrade,hidden,locked,locktime,exported,overridden,excluded,feedback,feedbackformat,information,informationformat,timecreated,timemodified,itemid) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
      [array (
        0 => '1024',
        1 => NULL,
        2 => '100.00000',
        3 => '0.00000',
        4 => NULL,
        5 => NULL,
        6 => NULL,
        7 => '0',
        8 => '0',
        9 => '0',
        10 => '0',
        11 => '0',
        12 => '0',
        13 => NULL,
        14 => '0',
        15 => NULL,
        16 => '0',
        17 => NULL,
        18 => NULL,
        19 => '25255',
      )]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jtomkinson Jordan Tomkinson
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: