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

Bad foreign key definition in table wiki_pages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Wiki (2.x)
    • Labels:
      None
    • Database:
      Any
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      It seems that the wiki_pages table has one foreign key pointing to wiki_subwiki, while the correct table name is wiki_subwikis. Also, ideally, the wiki_subwikis table should be defined in the XML structure before the wiki_pages one, so if creation of schema is performed with foreign keys enabled, it will work (i.e. dependencies must be satisfied by a correct order in install.xml files).

      To detect/reproduce this problem:

      1. Go to Admin -> Development -> XMLDB Editor
      2. Execute the "[ Check foreign keys] " facility.

      Ciao

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            stronk7 Eloy Lafuente (stronk7)
            Tester:
            Nobody
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Nov/10