mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-02 04:43:46 +01:00
34 lines
832 B
XML
34 lines
832 B
XML
<?xml version="1.0"?>
|
|
<schema version="0.2">
|
|
<table name="simple_table">
|
|
<field name="id" type="I" size="11">
|
|
<KEY/>
|
|
<AUTOINCREMENT/>
|
|
</field>
|
|
<field name="name" type="C" size="3">
|
|
<DEFAULT value="no"/>
|
|
</field>
|
|
<field name="description" type="X"></field>
|
|
<index name="id">
|
|
<UNIQUE/>
|
|
<col>id</col>
|
|
</index>
|
|
<index name="id_2">
|
|
<col>id</col>
|
|
</index>
|
|
<data>
|
|
</data>
|
|
</table>
|
|
<sql>
|
|
<descr>SQL to be executed only on specific platforms</descr>
|
|
<query platform="postgres|postgres7">
|
|
insert into mytable ( row1, row2 ) values ( 12, 'postgres stuff' )
|
|
</query>
|
|
<query platform="mysql">
|
|
insert into mytable ( row1, row2 ) values ( 12, 'mysql stuff' )
|
|
</query>
|
|
<query platform="mssql">
|
|
INSERT into simple_table ( name, description ) values ( '12', 'Microsoft stuff' )
|
|
</query>
|
|
</sql>
|
|
</schema> |