<?xml version="1.0" encoding="UTF-8" ?>
<XMLDB PATH="course/format/flexible/db" VERSION="20131104" COMMENT="XMLDB file for Moodle course/format/flexible"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="../../../../lib/xmldb/xmldb.xsd"
>
  <TABLES>
    <TABLE NAME="format_flexible_icon" COMMENT="Icon images for each topic, used by the grid course format" NEXT="format_flexible_summary">
      <FIELDS>
        <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="false" SEQUENCE="true" NEXT="image"/>
        <FIELD NAME="image" TYPE="text" LENGTH="small" NOTNULL="false" SEQUENCE="false" PREVIOUS="id" NEXT="displayedimageindex"/>
        <FIELD NAME="displayedimageindex" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="true" DEFAULT="0" SEQUENCE="false" COMMENT="Used to ensure the browser gets the new image when changed.  Sequence controlled by code." PREVIOUS="image" NEXT="sectionid"/>
        <FIELD NAME="sectionid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="false" SEQUENCE="false" PREVIOUS="displayedimageindex" NEXT="courseid"/>
        <FIELD NAME="courseid" TYPE="int" LENGTH="10" NOTNULL="true" UNSIGNED="false" SEQUENCE="false" COMMENT="Needed to identify records when deleting a course" PREVIOUS="sectionid"/>
      </FIELDS>
      <KEYS>
        <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
      </KEYS>
      <INDEXES>
        <INDEX NAME="section" UNIQUE="true" FIELDS="sectionid"/>
      </INDEXES>
    </TABLE>
  </TABLES>
</XMLDB>