Permalink
Browse files

Initial add...separate .xml file for each table.

  • Loading branch information...
1 parent 18eaa5d commit 920d44320d370a8e6570f12d7c8def825ea144f1 les_kopari committed Jan 1, 2004
Showing with 126 additions and 0 deletions.
  1. +32 −0 lib/db/schemaConfig.xml
  2. +94 −0 lib/db/schemaCourse.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<schema>
+
+ <table name="config">
+
+ <field name="id" type="I" size="10">
+ <KEY/>
+ <AUTOINCREMENT/>
+ </field>
+
+ <field name="name" type="C" size="255">
+ <NOTNULL/>
+ </field>
+
+ <field name="value" type="C" size="255">
+ <NOTNULL/>
+ </field>
+ </table>
+ <sql>
+ <descr>Insert 1 row for testing only...comment out later</descr>
+ <query platform="postgres|postgres7">
+ insert into config(id,name,value) values (1,'1','1')
+ </query>
+ <query platform="mysql">
+ insert into config(id,name,value) values (1,'1','1')
+ </query>
+ <query platform="oci8po">
+ insert into config(id,name,value) values (1,'1','1')
+ </query>
+ </sql>
+</schema>
+
@@ -0,0 +1,94 @@
+<?xml version="1.0"?>
+<schema>
+ <table name="course">
+ <field name="id" type="I" size="10">
+ <KEY/>
+ <AUTOINCREMENT/>
+ </field>
+ <field name="category" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="sortorder" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="password" type="C" size="50" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="fullname" type="C" size="254" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="shortname" type="C" size="15" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="summary" type="X" >
+ <NOTNULL/>
+ </field>
+ <field name="format" type="C" size="15" default="topics">
+ <NOTNULL/>
+ </field>
+ <field name="showgrades" type="L" default="1">
+ <NOTNULL/>
+ </field>
+ <field name="modinfo" type="X">
+ <NOTNULL/>
+ </field>
+ <field name="newsitems" type="I1" default="1">
+ <NOTNULL/>
+ </field>
+ <field name="teacher" type="C" size="100" default="Teacher">
+ <NOTNULL/>
+ </field>
+ <field name="teachers" type="C" size="100" default="Teachers">
+ <NOTNULL/>
+ </field>
+ <field name="student" type="C" size="100" default="Student">
+ <NOTNULL/>
+ </field>
+ <field name="students" type="C" size="100" default="Students">
+ <NOTNULL/>
+ </field>
+ <field name="guest" type="I1" size="2" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="startdate" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="numsections" type="I1" size="5" default="1">
+ <NOTNULL/>
+ </field>
+ <field name="showrecent" type="I1" size="5" default="1">
+ <NOTNULL/>
+ </field>
+ <field name="marker" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="maxbytes" type="I" size="10" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="showreports" type="I" size="4" default="0">
+ <NOTNULL/>
+ </field>
+ <field name="visible" type="I" size="10" default="1">
+ <NOTNULL/>
+ </field>
+ <field name="timecreated" 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 course(1,1,1,'1','1','1','1','1','1','1',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)
+ </query>
+ <query platform="mysql">
+ insert into course values (1,1,1,'1','1','1','1','1',1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)
+ </query>
+ <query platform="oci8po">
+ insert into course values (1,1,1,'1','1','1','1','1',1,'1',1,'1','1','1','1',1,1,1,1,1,1,1,1,1,1)
+ </query>
+ </sql>
+</schema>
+

0 comments on commit 920d443

Please sign in to comment.