Renamed table.

This commit is contained in:
les_kopari 2004-01-17 12:52:42 +00:00
parent 6b95445ac8
commit 945e013c67
2 changed files with 100 additions and 0 deletions

57
lib/db/schemaEvent.xml Executable file
View File

@ -0,0 +1,57 @@
<?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>

43
lib/db/schemaGroups.xml Executable file
View File

@ -0,0 +1,43 @@
<?xml version="1.0"?>
<schema>
<table name="groups">
<field name="id" type="I" size="10">
<KEY/>
<AUTOINCREMENT/>
</field>
<field name="courseid" type="I" size="10" default="0">
<NOTNULL/>
</field>
<field name="name" type="C" size="254" default="">
<NOTNULL/>
</field>
<field name="description" type="X">
<NOTNULL/>
</field>
<field name="lang" type="C" size="10" default="en">
<NOTNULL/>
</field>
<field name="picture" type="I" size="10" default="1">
<NOTNULL/>
</field>
<field name="timecreated" type="I" size="10" default="1">
<NOTNULL/>
</field>
<field name="timemodified" type="I" size="10" default="1">
<NOTNULL/>
</field>
</table>
<sql>
<descr>Insert 1 row for testing only...comment out later</descr>
<query platform="postgres|postgres7">
insert into groups values (1,1,1,1,1,1,1,1)
</query>
<query platform="mysql">
insert into groups values (1,1,1,1,1,1,1,1)
</query>
<query platform="oci8po">
insert into groups values (1,1,1,1,1,1,1,1)
</query>
</sql>
</schema>