moodle/lib/db/schemaEvent.xml

58 lines
1.6 KiB
XML
Raw Normal View History

2004-01-17 12:52:42 +00:00
<?xml version="1.0"?>
<schema>
<table name="event">
<field name="id" type="I" size="10">
<KEY/>
<AUTOINCREMENT/>
</field>
<field name="name" type="X">
<NOTNULL/>
</field>
<field name="description" type="C" size="255" default="">
<NOTNULL/>
</field>
<field name="courseid" type="I" size="10" default="0">
<KEY/>
<NOTNULL/>
</field>
<field name="groupid" type="I" size="10" default="0">
<NOTNULL/>
</field>
<field name="userid" type="I" size="10" default="0">
<KEY/>
<NOTNULL/>
</field>
<field name="modulename" type="C" size="20" default="">
<NOTNULL/>
</field>
<field name="instance" type="I" size="10" default="0">
<NOTNULL/>
</field>
<field name="eventtype" type="C" size="20" default="">
<NOTNULL/>
</field>
<field name="timestart" type="I" size="10" default="0">
<NOTNULL/>
</field>
<field name="timeduration" type="I" size="10" default="0">
<NOTNULL/>
</field>
<field name="timemodified" type="I" size="10" default="0">
<NOTNULL/>
</field>
</table>
<sql>
<descr>Insert 1 row for testing only...comment out later</descr>
<query platform="postgres|postgres7">
insert into event values (1,1,1,1,1,1,1,1,1,1,1,1)
</query>
<query platform="mysql">
insert into event values (1,1,1,1,1,1,1,1,1,1,1,1)
</query>
<query platform="oci8po">
insert into event values (1,1,1,1,1,1,1,1,1,1,1,1)
</query>
</sql>
</schema>