mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Renamed table.
This commit is contained in:
parent
6b95445ac8
commit
945e013c67
57
lib/db/schemaEvent.xml
Executable file
57
lib/db/schemaEvent.xml
Executable 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
43
lib/db/schemaGroups.xml
Executable 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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user