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

can't create unique index on mdl_course_modules.idnumber

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9, 2.0
    • Fix Version/s: 1.9, 2.0
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Database:
      Microsoft SQL
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE

      Description

      The install script for 1.9 fails on our system when it tries to had this index.

      The CREATE UNIQUE INDEX statement terminated because a duplicate key was found for the object name 'dbo.mdl_course_modules' and the index name 'mdl_courmodu_idn_uix'. The duplicate key value is (<NULL>)

      There is a idnumber column in the mdl_course_modules field, but it's not being used. All the values are NULL and therefore they aren't unique.

        Attachments

          Activity

            People

            • Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              trick Alan Trick
              Tester:
              Nobody
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Ryan Wyllie
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Mar/08