moodle/lib/db/schemaCourse_categories.xml
2004-01-02 17:55:09 +00:00

44 lines
1.2 KiB
XML
Executable File

<?xml version="1.0"?>
<schema>
<table name="course_categories">
<field name="id" type="I" size="10">
<KEY/>
<AUTOINCREMENT/>
</field>
<field name="name" type="C" size="255">
<NOTNULL/>
</field>
<field name="description" type="X">
<NOTNULL/>
</field>
<field name="parent" type="I" size="10">
<NOTNULL/>
</field>
<field name="sortorder" type="I" size="10">
<NOTNULL/>
</field>
<field name="coursecount" type="I" size="10">
<NOTNULL/>
</field>
<field name="visible" type="L" size="1" default="1">
<NOTNULL/>
</field>
<field name="timemodified" type="L" 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 course_categories values (1,'1','1',1,1,1,1,1)
</query>
<query platform="mysql">
insert into course_categories values (1,'1','1',1,1,1,1,1)
</query>
<query platform="oci8po">
insert into course_categories values (1,'1','1',1,1,1,1,1)
</query>
</sql>
</schema>