Initial add...separate .xml file for each table.
authorles_kopari <les_kopari>
Thu, 1 Jan 2004 19:41:48 +0000 (19:41 +0000)
committerles_kopari <les_kopari>
Thu, 1 Jan 2004 19:41:48 +0000 (19:41 +0000)
lib/db/schemaConfig.xml [new file with mode: 0755]
lib/db/schemaCourse.xml [new file with mode: 0755]

diff --git a/lib/db/schemaConfig.xml b/lib/db/schemaConfig.xml
new file mode 100755 (executable)
index 0000000..dbc76fe
--- /dev/null
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>\r
+<schema>\r
+\r
+  <table name="config">\r
+\r
+    <field name="id" type="I" size="10">\r
+      <KEY/>\r
+      <AUTOINCREMENT/>\r
+    </field>\r
+\r
+    <field name="name" type="C" size="255">\r
+      <NOTNULL/>\r
+    </field>\r
+\r
+    <field name="value" type="C" size="255">\r
+      <NOTNULL/>\r
+    </field>\r
+  </table>\r
+  <sql>\r
+    <descr>Insert 1 row for testing only...comment out later</descr>\r
+    <query platform="postgres|postgres7">\r
+      insert into config(id,name,value) values (1,'1','1')\r
+    </query>\r
+    <query platform="mysql">\r
+      insert into config(id,name,value) values (1,'1','1')\r
+    </query>\r
+    <query platform="oci8po">\r
+      insert into config(id,name,value) values (1,'1','1')\r
+    </query>\r
+  </sql>\r
+</schema>\r
+\r
diff --git a/lib/db/schemaCourse.xml b/lib/db/schemaCourse.xml
new file mode 100755 (executable)
index 0000000..4a93265
--- /dev/null
@@ -0,0 +1,94 @@
+<?xml version="1.0"?>\r
+<schema>\r
+  <table name="course">\r
+    <field name="id" type="I" size="10">\r
+      <KEY/>\r
+      <AUTOINCREMENT/>\r
+    </field>\r
+    <field name="category" type="I" size="10" default="0">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="sortorder" type="I" size="10" default="0">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="password" type="C" size="50" default="0">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="fullname" type="C" size="254" default="0">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="shortname" type="C" size="15" default="0">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="summary" type="X" >\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="format" type="C" size="15" default="topics">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="showgrades" type="L" default="1">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="modinfo" type="X">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="newsitems" type="I1" default="1">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="teacher" type="C" size="100" default="Teacher">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="teachers" type="C" size="100" default="Teachers">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="student" type="C" size="100" default="Student">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="students" type="C" size="100" default="Students">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="guest" type="I1" size="2" default="0">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="startdate" type="I" size="10" default="0">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="numsections" type="I1" size="5" default="1">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="showrecent" type="I1" size="5" default="1">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="marker" type="I" size="10" default="0">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="maxbytes" type="I" size="10" default="0">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="showreports" type="I" size="4" default="0">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="visible" type="I" size="10" default="1">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="timecreated" type="I" size="10" default="0">\r
+      <NOTNULL/>\r
+    </field>\r
+    <field name="timemodified" type="I" size="10" default="0">\r
+      <NOTNULL/>\r
+    </field>\r
+  </table>\r
+  <sql>\r
+    <descr>Insert 1 row for testing only...comment out later</descr>\r
+    <query platform="postgres|postgres7">\r
+      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)\r
+    </query>\r
+    <query platform="mysql">\r
+      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)\r
+    </query>\r
+    <query platform="oci8po">\r
+      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)\r
+    </query>\r
+  </sql>\r
+</schema>\r
+\r