aboutsummaryrefslogtreecommitdiff
path: root/db/install.xml
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-27 09:59:15 +0300
committerValentin Popov <info@valentineus.link>2017-10-27 10:28:10 +0300
commit04e60b112b9aff77cdc1ab0adaab7fe4c46bc843 (patch)
tree15fde8aa904c48e6739df4182c53e43cc18ae2cc /db/install.xml
parent9e4c2dcbaef31a2de6d13bf8056a76999d7fbb04 (diff)
downloadlocal_webhooks-04e60b112b9aff77cdc1ab0adaab7fe4c46bc843.tar.xz
local_webhooks-04e60b112b9aff77cdc1ab0adaab7fe4c46bc843.zip
Additional table
Diffstat (limited to 'db/install.xml')
-rw-r--r--db/install.xml15
1 files changed, 14 insertions, 1 deletions
diff --git a/db/install.xml b/db/install.xml
index d8b64b3..7d3ad04 100644
--- a/db/install.xml
+++ b/db/install.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<XMLDB PATH="blocks/local_webhooks/db" VERSION="20171026" COMMENT="XMLDB file for Moodle" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd">
+<XMLDB PATH="blocks/local_webhooks/db" VERSION="20171027" COMMENT="XMLDB file for Moodle" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd">
<TABLES>
<TABLE NAME="local_webhooks_service" COMMENT="A table for storing callback services.">
<FIELDS>
@@ -15,5 +15,18 @@
<KEY NAME="primary" TYPE="primary" FIELDS="id" />
</KEYS>
</TABLE>
+ <TABLE NAME="local_webhooks_responses" COMMENT="Query and Response Storage Table.">
+ <FIELDS>
+ <FIELD NAME="id" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="true" />
+ <FIELD NAME="date" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" />
+ <FIELD NAME="status" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" />
+ <FIELD NAME="callback" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" />
+ <FIELD NAME="response" TYPE="text" NOTNULL="true" SEQUENCE="false" />
+ <FIELD NAME="request" TYPE="text" NOTNULL="true" SEQUENCE="false" />
+ </FIELDS>
+ <KEYS>
+ <KEY NAME="primary" TYPE="primary" FIELDS="id" />
+ </KEYS>
+ </TABLE>
</TABLES>
</XMLDB>