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

Allow xmldb / install.xml to declare any elements which only apply for a certain db family

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: Future Dev
    • Fix Version/s: None
    • Component/s: Database SQL/XMLDB
    • Labels:
      None

      Description

      This was found via MDL-67886

      There are small edge cases where certain plugins need to have different schemas depending on which db they are using. This will cause the schema check to fail on the other db's.

      The root cause here is that we have no way of declaring in the xml file that a chunk only applies for a certain db driver. The environment.xml format does have this expressive power so in we could extend xmldb to do something similar such as:

      <INDEXES>
          <VENDOR name="postgres">
              <INDEX NAME="name" UNIQUE="false" FIELDS="fiedl1,field2" COMMENT="Some index"/>
           <VENDOR>
      </INDEXES>

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              brendanheywood Brendan Heywood
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: