aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-12-01 14:12:03 +0300
committerValentin Popov <info@valentineus.link>2017-12-01 14:12:03 +0300
commita1662578d91b89e1b8fd4bdaed1c98d32b22aafb (patch)
treef0058187b3ebb7efa4f584fb4e2b0ef676c19ee8 /db
parent5156f36d470741f0164d03d31c750f2ca6d0c202 (diff)
downloadtool_managertokens-a1662578d91b89e1b8fd4bdaed1c98d32b22aafb.tar.xz
tool_managertokens-a1662578d91b89e1b8fd4bdaed1c98d32b22aafb.zip
Small additions to the fields of the table
Diffstat (limited to 'db')
-rw-r--r--db/install.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/install.xml b/db/install.xml
index 293387b..ab3c708 100644
--- a/db/install.xml
+++ b/db/install.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<XMLDB PATH="admin/tool/tool_managertokens/db" VERSION="20171120" COMMENT="XMLDB file for Moodle" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd">
+<XMLDB PATH="admin/tool/tool_managertokens/db" VERSION="20171201" COMMENT="XMLDB file for Moodle" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../lib/xmldb/xmldb.xsd">
<TABLES>
<TABLE NAME="tool_managertokens_tokens" COMMENT="Table of storage of tokens and information about them.">
<FIELDS>
@@ -10,7 +10,7 @@
<FIELD NAME="limited" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Limit the number of activations." />
<FIELD NAME="scope" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Use of the token." />
<FIELD NAME="targetid" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" COMMENT="Unique target ID." />
- <FIELD NAME="targettype" TYPE="char" LENGTH="255" NOTNULL="true" SEQUENCE="false" COMMENT="Target type." />
+ <FIELD NAME="targettype" TYPE="char" LENGTH="255" NOTNULL="true" DEFAULT="user" SEQUENCE="false" COMMENT="Target type." />
<FIELD NAME="timecreated" TYPE="int" LENGTH="10" NOTNULL="true" SEQUENCE="false" COMMENT="Time of record creation." />
<FIELD NAME="timelastuse" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="The last activation." />
<FIELD NAME="timelimited" TYPE="int" LENGTH="10" NOTNULL="true" DEFAULT="0" SEQUENCE="false" COMMENT="Limit the life of the token." />