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

Database error when doing a selective restore

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.4.1
    • BACKEND
    • Backup
    • MySQL
    • 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

              Unassigned Unassigned
              jtomkinson Jordan Tomkinson
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: