1 <?xml version="1.0" encoding="utf-8"?>
3 Created by SQL::Translator::Producer::SqlfXML
4 Created on Fri Aug 15 15:08:18 2003
7 <schema xmlns="http://sqlfairy.sourceforge.net/sqlfairy.xml">
10 <table order="1" name="Basic">
14 is_primary_key="1" is_foreign_key="0"
15 size="10" data_type="int" is_auto_increment="1" order="1"
17 <extra ZEROFILL="1" />
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" />
26 size="0" data_type="text" order="3" default_value="" />
27 <field name="email" size="500" data_type="varchar" order="4">
28 <extra foo="bar" hello="world" bar="baz" />
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>
37 <field name="another_id" size="10"
38 data_type="int" default_value="2" />
39 <field name="timest" size="0"
40 data_type="timestamp" order="7" >
45 <index name="titleindex" fields="title" type="NORMAL">
46 <extra foo="bar" hello="world" bar="baz" />
51 <constraint name="" type="PRIMARY KEY" fields="id"
52 reference_table="" options="" deferrable="1" match_type=""
53 expression="" on_update="" on_delete="">
54 <extra foo="bar" hello="world" bar="baz" />
56 <constraint name="emailuniqueindex" type="UNIQUE" fields="email" />
57 <constraint name="" type="FOREIGN KEY" fields="another_id"
58 reference_table="Another" options="" deferrable="1" match_type=""
59 expression="" on_update="" on_delete="">
63 <extra foo="bar" hello="world" bar="baz" mysql_table_type="InnoDB" />
66 <table order="1" name="Another">
70 is_primary_key="1" is_foreign_key="0"
71 size="10" data_type="int" is_auto_increment="1" order="1"
77 <constraint name="" type="PRIMARY KEY" fields="id"
78 reference_table="" options="" deferrable="1" match_type=""
79 expression="" on_update="" on_delete="">
83 <extra foo="bar" hello="world" bar="baz" mysql_table_type="InnoDB" />
88 <view name="email_list" fields="email" order="1">
89 <sql>SELECT email FROM Basic WHERE (email IS NOT NULL)</sql>
90 <extra foo="bar" hello="world" bar="baz" />
95 <trigger name="foo_trigger" database_event="insert" on_table="Basic"
96 perform_action_when="after" order="1">
97 <action>update modified=timestamp();</action>
98 <extra foo="bar" hello="world" bar="baz" />
100 <trigger name="bar_trigger" database_events="insert , update" on_table="Basic"
101 perform_action_when="before" order="1">
102 <action>update modified2=timestamp();</action>
103 <extra hello="aliens" />
108 <procedure name="foo_proc" order="1" owner="Nomar" parameters="foo,bar">
109 <sql>select foo from bar</sql>
110 <comments>Go Sox!</comments>
111 <extra foo="bar" hello="world" bar="baz" />