Fix mysql_table_type .. (where did this go, or why was it not there?)
[dbsrgits/SQL-Translator.git] / t / data / xml / schema.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- 
3 Created by SQL::Translator::Producer::SqlfXML
4 Created on Fri Aug 15 15:08:18 2003
5
6  -->
7 <schema xmlns="http://sqlfairy.sourceforge.net/sqlfairy.xml">
8     
9   <tables>
10       <table order="1" name="Basic">
11         <fields>
12           <field
13               name="id"
14               is_primary_key="1" is_foreign_key="0"
15               size="10" data_type="int" is_auto_increment="1" order="1"
16               is_nullable="0">
17               <extra ZEROFILL="1" />
18           </field>
19           <field
20               name="title"
21               is_primary_key="0" is_foreign_key="0"
22               size="100" is_auto_increment="0" data_type="varchar"
23               order="2" default_value="hello" is_nullable="0" />
24           <field
25               name="description"
26               size="0" data_type="text" order="3" default_value="" />
27           <field name="email" size="255" data_type="varchar" order="4">
28               <extra foo="bar" hello="world" bar="baz" />
29           </field>
30           <field name="explicitnulldef" size="0" data_type="varchar" order="5" />
31           <field name="explicitemptystring" size="0"
32               data_type="varchar" order="6" default_value="" />
33           <field name="emptytagdef" size="0"
34               data_type="varchar" order="7" default_value="" >
35               <comments>Hello emptytagdef</comments>
36           </field>
37         </fields>
38
39         <indices>
40           <index name="titleindex" fields="title" type="NORMAL">
41             <extra foo="bar" hello="world" bar="baz" />
42           </index>
43         </indices>
44
45         <constraints>
46           <constraint name="" type="PRIMARY KEY" fields="id"
47               reference_table="" options="" deferrable="1" match_type=""
48               expression="" on_update="" on_delete="">
49               <extra foo="bar" hello="world" bar="baz" />
50           </constraint>
51           <constraint name="emailuniqueindex" type="UNIQUE" fields="email" />
52         </constraints>
53         
54         <extra foo="bar" hello="world" bar="baz" mysql_table_type="InnoDB" />
55       </table>
56   </tables>
57
58   <views>
59       <view name="email_list" fields="email" order="1">
60           <sql>SELECT email FROM Basic WHERE email IS NOT NULL</sql>
61           <extra foo="bar" hello="world" bar="baz" />
62       </view>
63   </views>
64
65   <triggers>
66       <trigger name="foo_trigger" database_event="insert" on_table="Basic"
67           perform_action_when="after" order="1">
68           <action>update modified=timestamp();</action>
69           <extra foo="bar" hello="world" bar="baz" />
70       </trigger>
71   </triggers>
72
73   <procedures>
74       <procedure name="foo_proc" order="1" owner="Nomar" parameters="foo,bar">
75           <sql>select foo from bar</sql>
76           <comments>Go Sox!</comments>
77           <extra foo="bar" hello="world" bar="baz" />
78       </procedure>
79   </procedures>
80
81 </schema>