moodle/lib/db/schemaGroups.xml
2004-01-17 12:52:42 +00:00

44 lines
1.2 KiB
XML
Executable File

<?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>