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

DDL sql execution error - duplicate entry in mdl_userpreference on upgrade from 1.9 to 2.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • None
    • 2.2.2
    • Backup
    • MOODLE_22_STABLE

      Upgrading from 1.9.16 to 2.2

      Linux, Apache, MySQL

      • used xml editor to clean DB prior to upgrade
      • upgrade started, system check OK but stopped about 10 minutes in with the many duplicate entry errors:

      DDL sql execution error
      Debug info: Duplicate entry '20470-blogpagesize' for key 'mdl_userpref_usenam_uix'
      CREATE UNIQUE INDEX mdl_userpref_usenam_uix ON mdl_user_preferences (userid, name)

      I can go through and remove all the duplications manually but the upgrade continues to halt on new records. I have no idea how many records have these duplicate entries so doesn't seem realistic to have to remove each one manually.

            Unassigned Unassigned
            pjfish06 Susan Mangan
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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