1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
|
<?xml version="1.0" encoding="utf-8"?>
<!--
Created by SQL::Translator::Producer::SqlfXML
Created on Fri Aug 15 15:08:18 2003
-->
<schema xmlns="http://sqlfairy.sourceforge.net/sqlfairy.xml">
<tables>
<table order="1" name="Basic">
<fields>
<field
name="id"
is_primary_key="1" is_foreign_key="0"
size="10" data_type="int" is_auto_increment="1" order="1"
is_nullable="0">
<extra ZEROFILL="1" />
</field>
<field
name="title"
is_primary_key="0" is_foreign_key="0"
size="100" is_auto_increment="0" data_type="varchar"
order="2" default_value="hello" is_nullable="0" />
<field
name="description"
size="0" data_type="text" order="3" default_value="" />
<field name="email" size="500" data_type="varchar" order="4">
<extra foo="bar" hello="world" bar="baz" />
</field>
<field name="explicitnulldef" size="0" data_type="varchar" order="5" />
<field name="explicitemptystring" size="0"
data_type="varchar" order="6" default_value="" />
<field name="emptytagdef" size="0"
data_type="varchar" order="7" default_value="backslash \ single-quote '" >
<comments>Hello 'emptytagdef'</comments>
</field>
<field name="another_id" size="10"
data_type="int" default_value="2" />
<field name="timest" size="0"
data_type="timestamp" order="7" >
</field>
<field name="numeric" size="9,1"
data_type="numeric" order="8" default_value="42.69" >
</field>
<field name="decimal" size="10,2"
data_type="decimal" order="9" >
</field>
</fields>
<indices>
<index name="titleindex" fields="title" type="NORMAL">
<extra foo="bar" hello="world" bar="baz" />
</index>
</indices>
<constraints>
<constraint name="" type="PRIMARY KEY" fields="id"
reference_table="" options="" deferrable="1" match_type=""
expression="" on_update="" on_delete="">
<extra foo="bar" hello="world" bar="baz" />
</constraint>
<constraint name="emailuniqueindex" type="UNIQUE" fields="email" />
<constraint name="Basic" type="FOREIGN KEY" fields="another_id"
reference_table="Another" options="" deferrable="1" match_type=""
expression="" on_update="" on_delete="">
</constraint>
</constraints>
<extra foo="bar" hello="world" bar="baz" mysql_table_type="InnoDB" />
</table>
<table order="1" name="Another">
<fields>
<field
name="id"
is_primary_key="1" is_foreign_key="0"
size="10" data_type="int" is_auto_increment="1" order="1"
is_nullable="0">
</field>
</fields>
<constraints>
<constraint name="" type="PRIMARY KEY" fields="id"
reference_table="" options="" deferrable="1" match_type=""
expression="" on_update="" on_delete="">
</constraint>
</constraints>
<extra foo="bar" hello="world" bar="baz" mysql_table_type="InnoDB" />
</table>
<table order="1" name="`table` [with] "quotes"">
<fields>
<field
name="`field` [with] "quotes""
is_primary_key="1" is_foreign_key="0"
size="10" data_type="int" is_auto_increment="1" order="1"
is_nullable="0">
</field>
</fields>
</table>
</tables>
<views>
<view name="email_list" fields="email" order="1">
<sql>SELECT email FROM Basic WHERE (email IS NOT NULL)</sql>
<extra foo="bar" hello="world" bar="baz" />
</view>
</views>
<triggers>
<trigger name="foo_trigger" database_event="insert" on_table="Basic"
perform_action_when="after" order="1">
<action>update modified=timestamp();</action>
<extra foo="bar" hello="world" bar="baz" />
</trigger>
<trigger name="bar_trigger" database_events="insert , update" on_table="Basic"
perform_action_when="before" order="1">
<action>update modified2=timestamp();</action>
<extra hello="aliens" />
</trigger>
<trigger name="`trigger` [with] "quotes""
database_events="insert"
on_table="`table` [with] "quotes""
perform_action_when="before" order="1">
<action>select timestamp();</action>
</trigger>
</triggers>
<procedures>
<procedure name="foo_proc" order="1" owner="Nomar" parameters="foo,bar">
<sql>select foo from bar</sql>
<comments>Go Sox!</comments>
<extra foo="bar" hello="world" bar="baz" />
</procedure>
</procedures>
</schema>
|