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

Database error when doing a selective restore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • BACKEND
    • 2.4.1
    • Backup
    • MySQL
    • MOODLE_24_STABLE

      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',
      )]
      

            Unassigned Unassigned
            jtomkinson Jordan Tomkinson
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.