You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
848 B
30 lines
848 B
<?xml version="1.0"?>
|
|
<schema version="0.2">
|
|
<table name="mytable">
|
|
<field name="row1" type="I">
|
|
<descr>An integer row that's a primary key and autoincrements</descr>
|
|
<KEY/>
|
|
<AUTOINCREMENT/>
|
|
</field>
|
|
<field name="row2" type="C" size="16">
|
|
<descr>A 16 character varchar row that can't be null</descr>
|
|
<NOTNULL/>
|
|
</field>
|
|
<index name="myindex">
|
|
<col>row1</col>
|
|
<col>row2</col>
|
|
</index>
|
|
</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>
|
|
</sql>
|
|
<table name="obsoletetable">
|
|
<DROP/>
|
|
</table>
|
|
</schema>
|