weekly release 4.0dev
[moodle.git] / message / output / popup / db / install.xml
CommitLineData
7489e4d5
MN
1<?xml version="1.0" encoding="UTF-8" ?>
2<XMLDB PATH="message/output/popup/db" VERSION="20161221" COMMENT="XMLDB file for Moodle message/output/popup"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:noNamespaceSchemaLocation="../../../../lib/xmldb/xmldb.xsd"
5>
6 <TABLES>
7 <TABLE NAME="message_popup" COMMENT="Keep state of notifications for the popup message processor">
8 <FIELDS>
9 <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
10 <FIELD NAME="messageid" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false"/>
11 <FIELD NAME="isread" TYPE="int" LENGTH="1" NOTNULL="true" DEFAULT="0" SEQUENCE="false"/>
12 </FIELDS>
13 <KEYS>
14 <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
15 </KEYS>
16 <INDEXES>
17 <INDEX NAME="messageid-isread" UNIQUE="true" FIELDS="messageid, isread"/>
18 <INDEX NAME="isread" UNIQUE="false" FIELDS="isread"/>
19 </INDEXES>
20 </TABLE>
1f64f174
MN
21 <TABLE NAME="message_popup_notifications" COMMENT="List of notifications to display in the message output popup">
22 <FIELDS>
23 <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true"/>
24 <FIELD NAME="notificationid" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false"/>
25 </FIELDS>
26 <KEYS>
27 <KEY NAME="primary" TYPE="primary" FIELDS="id"/>
28 <KEY NAME="notificationid" TYPE="foreign" FIELDS="notificationid" REFTABLE="notifications" REFFIELDS="id"/>
29 </KEYS>
30 </TABLE>
7489e4d5
MN
31 </TABLES>
32</XMLDB>