install.xml 3.26 KB
Newer Older
Stacey Walker's avatar
Stacey Walker committed
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<XMLDB PATH="artefact/plans/db" VERSION="20190717" COMMENT="XMLDB file for Plans artefact Mahara tables"
Stacey Walker's avatar
Stacey Walker committed
3
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
    xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd"
Stacey Walker's avatar
Stacey Walker committed
5
>
6
7
<TABLES>
    <!-- This table is supposed to have a 1-1 relation with every row in the
Richard Mansfield's avatar
Richard Mansfield committed
8
    artefact table with artefacttype = 'task'.  It contains additional data
9
    that doesn't exist in the artefact table. -->
Richard Mansfield's avatar
Richard Mansfield committed
10
    <TABLE NAME="artefact_plans_task">
11
        <FIELDS>
Richard Mansfield's avatar
Richard Mansfield committed
12
            <FIELD NAME="artefact" TYPE="int" LENGTH="10" SEQUENCE="true" NOTNULL="true" />
13
            <FIELD NAME="startdate" TYPE="datetime" NOTNULL="false" />
14
            <FIELD NAME="completiondate" TYPE="datetime" NOTNULL="false" />
15
            <FIELD NAME="completed" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" />
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
            <FIELD NAME="reminder" TYPE="int" LENGTH="10" NOTNULL="false" UNSIGNED="true"/>
            <FIELD NAME="remindermailsent" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" />
            <FIELD NAME="taskview" TYPE="int" LENGTH="10" NOTNULL="false" />
            <FIELD NAME="outcome" TYPE="int" LENGTH="10" NOTNULL="false" />
            <FIELD NAME="outcometype" TYPE="char" LENGTH="20" NOTNULL="false" />
            <FIELD NAME="template" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" />
            <FIELD NAME="roottemplatetask" TYPE="int" LENGTH="10" NOTNULL="false"/>
            <FIELD NAME="mandatory" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" />
            <FIELD NAME="rootgrouptask" TYPE="int" LENGTH="10" NOTNULL="false" />
        </FIELDS>
        <KEYS>
            <KEY NAME="primary" TYPE="primary" FIELDS="artefact" />
            <KEY NAME="artefactfk" TYPE="foreign" FIELDS="artefact" REFTABLE="artefact" REFFIELDS="id" />
        </KEYS>
        <INDEXES>
            <INDEX NAME="rootgrouptaskix" UNIQUE="false" FIELDS="rootgrouptask"/>
            <INDEX NAME="roottemplatetaskix" UNIQUE="false" FIELDS="roottemplatetask"/>
            <INDEX NAME="taskviewix" UNIQUE="false" FIELDS="taskview"/>
            <INDEX NAME="outcomeix" UNIQUE="false" FIELDS="outcome"/>
            <INDEX NAME="outcometypeix" UNIQUE="false" FIELDS="outcometype"/>
            <INDEX NAME="completedremindermailsentix" UNIQUE="false" FIELDS="completed,remindermailsent"/>
        </INDEXES>
    </TABLE>

    <TABLE NAME="artefact_plans_plan">
        <FIELDS>
            <FIELD NAME="artefact" TYPE="int" LENGTH="10" SEQUENCE="true" NOTNULL="true" />
            <FIELD NAME="template" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" />
            <FIELD NAME="roottemplate" TYPE="int" LENGTH="10" NOTNULL="false" />
            <FIELD NAME="rootgroupplan" TYPE="int" LENGTH="10" NOTNULL="false" />
            <FIELD NAME="selectionplan" TYPE="int" LENGTH="2" NOTNULL="true" DEFAULT="0" />
47
48
        </FIELDS>
        <KEYS>
Richard Mansfield's avatar
Richard Mansfield committed
49
50
            <KEY NAME="primary" TYPE="primary" FIELDS="artefact" />
            <KEY NAME="artefactfk" TYPE="foreign" FIELDS="artefact" REFTABLE="artefact" REFFIELDS="id" />
51
        </KEYS>
52
53
54
55
        <INDEXES>
            <INDEX NAME="roottemplateix" UNIQUE="false" FIELDS="roottemplate"/>
            <INDEX NAME="rootgroupplanix" UNIQUE="false" FIELDS="rootgroupplan"/>
        </INDEXES>
56
57
    </TABLE>
</TABLES>
Stacey Walker's avatar
Stacey Walker committed
58
</XMLDB>