Add support for COLLATE table option to MySQL parser
[dbsrgits/SQL-Translator.git] / Changes
1
2 * Add support for COLLATE table option to MySQL parser
3
4 # -----------------------------------------------------------
5 # 0.0899_02 2008-01-29
6 # ----------------------------------------------------------
7
8 * Major refactoring of SQL::Translator::Diff again:
9 * Diff is no longer one huge monolithic function.                         
10 * Added more tests for diff                                               
11 * When producing diffs for MySQL you will (by default) get single alter statements per table
12 * SQLite can also do remove columns (by creating a temp table as shown in http://sqlite.org/faq.html#q11
13 * Columns can be renamed if the new schema is from a form that can have metadata (which is pretty much anything but an SQL file.) It does this by looking at renamed_from in the $field->extra                              
14 * Updated Oracle and Postgres producers
15 * More tests!
16
17 # -----------------------------------------------------------
18 # 0.0899_01 2007-10-21
19 # ----------------------------------------------------------
20
21 * SQL::Translator::Diff now uses the ::Producer modules to create diffs
22   This *will* break back-compatibility
23   Use sqlt-diff-old for the previous one, and fix producers!
24
25 # -----------------------------------------------------------
26 # 0.08001 2007-09-26
27 # ----------------------------------------------------------
28
29 * Patched to ignore all TT versions >= 2.15 until TT is fixed :(
30
31 # -----------------------------------------------------------
32 # 0.08 2006-12-07
33 # -----------------------------------------------------------
34
35 * Patched 18ttschema-producer.t and 33tt-table-producter.t to skip on TT 2.15, thanks Ash!
36
37 # -----------------------------------------------------------
38 # 0.08_04 2006-11-10
39 # -----------------------------------------------------------
40
41 * Patched MySQL producer to name constraints sanely, thanks Ash
42 * Added patch to Producer::DB2 to avoid dependency issues with foreign keys
43 * Added patch to remove single quotes for numeric default values in Producer::DB2
44 * Fixed Parser::SQLite to require a semicolon after a create trigger statement
45 * Added patch from avinash to add CASCADE to pg table drops
46
47 # -----------------------------------------------------------
48 # 0.08_03
49 # -----------------------------------------------------------
50
51 * Added patch to use default values for Pg timestamp fields
52
53 # -----------------------------------------------------------
54 # 0.08_02    2006-11-03
55 # -----------------------------------------------------------
56
57 * Added patch from Ash to separate DROP statements in mysql producer in list-context
58 * Fixed up SQLites usage of no-comments
59
60 # -----------------------------------------------------------
61 # 0.08_01    2006-07-23
62 # -----------------------------------------------------------
63
64 * Made Trigger check that a give table exists in on_table - castaway
65 * Split some producers (DB2, MySQL, SQLite, PostgreSQL) into sub methods (others to follow) - castaway
66 * Add alter_* methods to some Producers and docs to Producer.pm (for use by Diff later) - castaway
67 * Made changes to allow producers to return a list of statements - castaway
68 * Split sqlt-diff into script and module - castaway
69 * Added quote_table_names and quote_field_names patch (omega, zamolxes) - castaway
70 * Added DB2 Producer - castaway
71 * Added mysql_character_set for 4.1+ -mda
72 * New filters, Names and Globals. -mda
73 * Added the initial work on a template based Dia UML producer. -mda
74
75 # -----------------------------------------------------------
76 # 0.07    2005-06-10
77 # -----------------------------------------------------------
78 *   YAML parser supports extra attributes on tables.
79
80 *   All schema objects now support the extra attribute, so can
81     have arbitary name/value data attached to them.
82
83 *   Refactoring: Added SQL::Translator::Schema::Object - base 
84     class for all Schema objects.
85
86 *   Changes to MySQL Parser (Dave Howorth)
87     - ignore INSERT statements
88     - permit ALTER TABLE ADD FOREIGN KEY
89     - allow trailing comma on last field in CREATE statements
90     - collect the database name
91
92 *   TTSchema Producer
93     - Can pass extra variables using tt_vars producer arg.
94     - Can pass extra config using tt_conf producer arg.
95     - Variables and config can be passed on the command line
96       with --tt-var and --tt-conf options to sqlt.
97
98 *   Added schema filters.
99
100 *   MySQL Producer
101     - Added 'mysql_table_type' extra attribute on tables.
102     - Works out InnoDB tables from constraints.
103     - mysql_charset and mysql_collate extra attributes for tables and fiels.
104
105
106 # -----------------------------------------------------------
107 # 0.06    2004-05-13
108 # -----------------------------------------------------------
109 *   Added SQL::Translator::Manual
110
111 *   Installation process now uses Module::Build
112
113 *   Added new "Dumper" producer
114
115 *   Changed the native SQL Fairy XML format to a fixed mapping.
116     *NB:* You should convert your existing XML schema. See the
117     SQL::Translator::Parser::XML::SQLFairy docs.
118
119 *   Added producers: TT::Base and TT::Table.
120
121 # -----------------------------------------------------------
122 # 0.05    2004-02-27
123 # -----------------------------------------------------------
124 *   Added "COMMENT ON *" syntax to PostgreSQL parser
125
126 *   Some fixes to Oracle parser as reported by Gail Binkley
127
128 *   Added support in PostgreSQL parser for all "ALTER TABLE" statements
129
130 *   Now distributing sqlt-diff script as it's pretty usable
131
132 *   Added new options to sqlt-graph and GraphViz producer (Dave Cash)
133
134 # -----------------------------------------------------------
135 # 0.04    2003-11-07
136 # -----------------------------------------------------------
137
138 *   Increased version of Constants module to 1.41 to avoid a problem 
139     where 0.02 has 1.4 of that file and 0.03 had 1.06 which confused
140     CPAN
141
142 *   Hard-coded all the PREREQ_PM modules in Makefile.PL (rather than
143     setting them dynamically) so that automated tests would pass
144
145 # -----------------------------------------------------------
146 # 0.03    2003-11-06
147 # -----------------------------------------------------------
148
149 *   Added parsers: XML::SQLFairy, Sybase, SQLite, DBI-MySQL, 
150     DBI-PostgreSQL, DBI-SQLite, DBI-Sybase, Storable, YAML
151
152 *   Added producers: XML::SQLFairy, TTSchema, Storable, YAML
153
154 *   HTML producer now uses stylesheets to allow easy customization of colors
155
156 *   Many bug fixes to most every module
157
158 *   Added "sqlt-dumper" script to help create a script for dumping
159     a database a la "mysqldump"
160
161 *   Reversed the arrowheads on the graphical producers to show the 
162     relationships in a more standard way
163
164 *   Changes all included script names to start with "sqlt"
165
166 *   Added capturing and printing most embedded table and field comments
167
168 # -----------------------------------------------------------
169 # 0.02    2003-06-17
170 # -----------------------------------------------------------
171
172 *   Added parsers for Excel and Oracle
173
174 *   Removed Sybase parser because it didn't actually work
175
176 *   Added ClassDBI, Diagram, GraphViz, HTML, POD, SQLite, Sybase producers
177
178 *   Added Schema classes to represent schema as objects
179
180 *   Removed "Raw" producer in favor of the Schema classes
181
182 *   Removed "Validator" class as the Schema classes validate themselves
183
184 *   Improved all existing parsers and producers, expanding them to 
185     handle foreign keys much better, produce better output, etc.
186
187 *   Added sqlt-diagram.pl and sqlt-graphviz.pl as CLI frontends to the 
188     graphical producers
189
190 *   Added sql_translator.cgi as a web-form frontend to graphical producers
191
192 *   Expanded test suite
193
194 # -----------------------------------------------------------
195 # 0.01    2003-02-27
196 # -----------------------------------------------------------
197
198 *   Added parsers: XML::SQLFairy, Sybase, SQLite, DBI-MySQL, 
199     DBI-PostgreSQL, DBI-SQLite, DBI-Sybase, Storable, YAML
200
201 *   Added producers: XML::SQLFairy, TTSchema, Storable, YAML
202
203 *   HTML producer now uses stylesheets to allow easy customization of colors
204
205 *   Many bug fixes to most every module
206
207 *   Added "sqlt-dumper" script to help create a script for dumping
208     a database a la "mysqldump"
209
210 *   Reversed the arrowheads on the graphical producers to show the 
211     relationships in a more standard way
212
213 *   Changes all included script names to start with "sqlt"
214
215 *   Added capturing and printing most embedded table and field comments