]> git.mjollnir.org Git - moodle.git/commitdiff
adding a new key
authortoyomoyo <toyomoyo>
Fri, 20 Apr 2007 01:39:22 +0000 (01:39 +0000)
committertoyomoyo <toyomoyo>
Fri, 20 Apr 2007 01:39:22 +0000 (01:39 +0000)
lib/db/install.xml

index 6ad88b63f36149c23ebf484a454360bc11fe2a33..98f9892b1524783e4b212642c8404a9cf5c4ff0a 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" ?>
-<XMLDB PATH="lib/db" VERSION="20070418" COMMENT="XMLDB file for core Moodle tables"
+<XMLDB PATH="lib/db" VERSION="20070420" COMMENT="XMLDB file for core Moodle tables"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:noNamespaceSchemaLocation="../../lib/xmldb/xmldb.xsd"
 >
         <FIELD NAME="handlerfunction" TYPE="text" LENGTH="medium" NOTNULL="false" SEQUENCE="false" ENUM="false" COMMENT="serialized string or array describing function, suitable to be passed to call_user_func()" PREVIOUS="handlerfile"/>
       </FIELDS>
       <KEYS>
-        <KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="primary key of the table, please edit me"/>
+        <KEY NAME="primary" TYPE="primary" FIELDS="id" COMMENT="primary key of the table, please edit me" NEXT="eventname-handlermodule"/>
+        <KEY NAME="eventname-handlermodule" TYPE="unique" FIELDS="eventname, handlermodule" PREVIOUS="primary"/>
       </KEYS>
       <INDEXES>
         <INDEX NAME="eventname" UNIQUE="false" FIELDS="eventname"/>