1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2 *** INCOMPATIBLE CHANGES:
3 * SQLT no longer supports setting separate conflicting values for the now
4 deprecated 'quote_table_names' and 'quote_field_names'. Instead their values
5 are proxied to the new 'quote_identifiers'. If 'quote_identifiers' is
6 supplied, the legacy settings are ignored (with a warning). If nothing is
7 specified the default is TRUE as before. If only one is specified - default
8 to its value for everything, and if both are specified with a conflicting
9 value an exception is thrown.
10 * Partial quoting support has been added in SQLite. It is currently disabled by
11 default, you need to request is explicitly with quote_identifiers => 1. In a
12 future version of SQL::Translator *THIS DEFAULT BEHAVIOR WILL CHANGE*.
13 If you do NOT WANT quoting, set quote_identifiers to a false value to
14 protect yourself from changes in a future release.
15 * Bump the default MySQL parser version to MySQL 4.0
16 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
17 * script/sqlt-graph now accepts a --trace option
18 * Fixes to SQLite foreign keys production (patch from Johan Viklund)
19 closes RT#16412, RT#44769
20 * ON DELETE/UPDATE actions for SQLite (patch from Lukas Thiemeier)
21 closes RT#70734, RT#71283, RT#70378
22 * Fix data preservation on SQLite diffs involving adding/dropping columns
23 * Support for triggers in PostgreSQL producer and parser
24 * Correct Data Type in SQLT::Parser::DBI::PostgreSQL (patch from Andrew Pam)
25 * Fix index issue in SQLT::Parser::DBI::PostgreSQL
26 * Add column and table comments in SQLT::Parser::DBI::PostgreSQL(patch from Andrew Pam)
27 * Stop the DBI parser from disconnecting externally supplied DBI handles (RT#35868)
28 * Fixed alter_drop_constraint for foreign keys and applying multiple changes
29 via alter_field to a column in Postgres Producer
30 * Added a working mechanism for naming foreign keys in the PostgreSQL producer
31 * Fix PostgreSQL ignoring default values with specified data type
32 * Fix PostgreSQL parser support for (N)::int defaults (patch by Tina Müller)
33 * Fix possible name duplication in SQLlite producer
34 * Oracle does not accept ON DELETE/UPDATE RESTRICT (though it is the actual default)
35 fix by not adding the ON DELETE/UPDATE clause at all
36 * Changed dependency on Digest::SHA1 to the core-bundled Digest::SHA (RT#67989)
37 * Support for double quoted and bit strings as default values in MySQL parser
38 * Improved VIEW support in MySQL parser
39 * Proper handling of CURRENT_TIMESTAMP default values in MySQL parser (RT#65844)
40 * Check in MySQL parser to avoid trying to parse a table defined twice in the same
41 file as indices (and probably other things) get messed up
42 * Workaround for some MySQL quirks on primary key definitions
43 * Fix dropping primary keys in MySQL diffs (RT#62250, patch from Nick Bertrand)
44 * MySQL producer does not attempt to write out non-existent unique constraint names
45 * MySQL parser correctly differentiates between signed and unsigned integer column
47 * Replace Class::Accessor::Fast dependency with already-included Moo
48 * Entire codebase is now free of tabs and trailing whitespace
49 * Spellfixes (RT#68912)
50 * Fix Diagram Producer POD (RT#71397, RT#71398)
51 * Fix Diagram Producer to use correct binmode on output (RT#71399)
52 * Fix ignored option to script/sqlt-diagram (RT#5992)
53 * Fix t/17sqlfxml-producer.t failures due to whitespace differences introduced by
54 environment config snippets (RT#70786)
55 * Fix assembly of Table objects with numbered columns being added out of order
56 (RT#74771) (based on patch from Jonathan Otsuka)
57 * Fix syntax error in SQL::Translator::Producer::Latex (RT#74953)
58 * Deprecate SQL::Translator::Schema::Graph and the as_graph() schema method
59 * Bump minimum supported perl version to 5.8.1 (mostly due to Moo)
61 # ----------------------------------------------------------
63 # ----------------------------------------------------------
65 * Add "if exists" to drop view statements in Pg.
67 # ----------------------------------------------------------
69 # ----------------------------------------------------------
71 * Fix MySQL producer to properly quote all table names on output (patch from geistteufel)
73 # ----------------------------------------------------------
75 # ----------------------------------------------------------
77 * Correctly create and parse FK constraints in SQLite
78 * Correct postgis geography type insertion and linebreak fix for multiple geometry/geography columns
79 * made PostgreSQL producer consistent with other producers in terms of
80 quoting and allowing functions in constraints and indices
81 * Add distinction of autoinc and regular primary keys to the GraphViz producer
82 * Fix odd invocation of Test::More::pass() in t/36-filters.t (RT#64728)
83 * Quote everything in SQL Server
84 * Turn off constraints before dropping tables in SQL Server
85 * Make true unique constraints if needed in SQL Server
86 * Fixed Producer::PostgresSQL to output array type after type size,
87 i.e. varchar(64)[] rather than varchar[](64)
89 # ----------------------------------------------------------
91 # ----------------------------------------------------------
93 * Fix POD typo in SQL/Translator/Schema/Trigger.pm
94 * Add explicit Scalar::Util to the deplist for really old perls
95 * Add support for PostGIS Geometry and Geography data types in the Pg producer
96 * Some minor fixes to squash warnings on new perls
97 * Support a custom_type_name hint when creating enum types in PostgreSQL
98 * Fix sqlt options/pod mismatch (RT#58318)
99 * Oracle Producer multicolumn constraint support
100 * Add support for triggers in the MySQL producer
101 * Fix unstable order of View's in MySQL parser
103 # ----------------------------------------------------------
105 # ----------------------------------------------------------
106 * Fix Producer::Oracle varchar2 without size def (ORA-00906: missing right
108 * Fix Producer::Oracle translate float and double to float instead of number
109 * Fix Producer::Oracle generation of too long unique constraint names
110 * Fix Producer::SQLite when generating VIEWs with add_drop_table => 1
111 * Fix Producer::MySQL not quoting index names when requested (RT#56173)
112 * Fix Producer::MySQL wrapping extra ()s around VIEW SELECT-ors (RT#56419)
113 * Fix Field::default_value to behave like a real accessor (allow undef as
114 an unsetting argument)
115 * Fix Mysql/Pg/SQLite/MSSQL producers to properly *not* quote numeric default
117 * Producer::Oracle tests now use Test::Differences
118 * Prettify output of SQLite producer (less bogus newlines)
119 * Augment SQLite and Pg producers to accept a perl-formatted (%d.%03d%03d)
120 and regular no-leading-zero (X.X.X) *_version producer args
122 # ----------------------------------------------------------
124 # ----------------------------------------------------------
125 * Fix Parser::DBI::Oracle reading too many tables (RT#49413)
126 * Fix Parser::MySQL tripping up on PRIMARY KEY ... USING (currently value is ignored) (RT#50468)
127 * Fix runaway debug trace (RT#52276)
128 * Fix Parser::PostgreSQL choking on commit; statements in DDL (#RT52277)
129 * Producer::Oracle now respects quote_field|table_names, and
130 no longer does name munging of reserved table names
131 * Producer::Oracle now correctly outputs databse-unique index names
133 # ----------------------------------------------------------
135 # ----------------------------------------------------------
136 * Fix PG producer numeric precision regression (RT#49301)
137 * Add DB2 producer numeric/decimal precision output
138 * Fix Oracle producer creating numeric precision statements that the test case expects (no whitespace)
139 * Add Oracle producer creating drop view statements like PG producer does
140 * Fix SQL::Translator::Diff to use producer_args instead of producer_options
142 # ----------------------------------------------------------
144 # ----------------------------------------------------------
145 * Pg parser fixes to deal properly with MATCH <type>
146 * Pg parser fixes to parse timestamp attributes correctly
147 * Fix broken default detection in script/sqlt (RT#27438)
148 * Fix dependency issues with LibXML and TT
150 # ----------------------------------------------------------
152 # ----------------------------------------------------------
153 * Depend on fixed Parse::RecDescent
154 * Added skip-tables and skip-tables-like options to Diagram
156 # ----------------------------------------------------------
158 # ----------------------------------------------------------
159 * Removed last use of Readonly
160 * Adjusted YAML dependency
162 # ----------------------------------------------------------
164 # ----------------------------------------------------------
165 * Re-add version numbers to files, else cpan's "upgrade" gets very confused
166 * Replaced code using Readonly, since most of the rest uses constant, and thats already a dep
167 * Moved YAML and XML::LibXML back to recommends, the tests for both now skip if not installed
168 * Bumped to 0.11000 to supercede 0.10 which has incorrect numbering scheme
170 # ----------------------------------------------------------
172 # ----------------------------------------------------------
173 * Resolved the following RT bugs (thanks to everyone for reporting!):
174 25791 does not recognize PostgreSQL ON_ERROR_STOP
175 29265 sqlt-diagram: --natural-join needs Graph::Directed
176 37814 SQLite translator failing to parse schema
177 42548 Producer::PostgreSQL incorrectly inserts the size in
178 'time(stamp)? with(out) time zone' fields
179 43173 SQL::Translator::Parser without versionnumber - will install
182 47026 META.yml is not packaged due to MANIFEST.SKIP (easyfix)
183 32130 Move from XML::XPath to XML::LibXML::XPathContext
185 13915 missing optional prerequisite cause make test to fail
186 8847 Diagram.pm: BINMODE missing in printing of graphic file.
187 21065 GraphViz producer fails on tables named 'node'
188 35448 Producer::PostgreSQL types without size
189 22026 sqlt-diagram uses -f arg twice
190 47897 [PATCH] Fix uninitialized value within @_ in (uc|lc)
191 47668 Mysql Parser doesn't recognize key types
192 46448 sqlt-graph errors out on MySQL DDL with btree keys
193 47176 Add Foreign Key support to Parser::DBI::PostgreSQL.pm
194 48025 MySQL Producer: Case inconsistency between elements in
195 @no_length_attr and $data_type
196 48569 sqlt-diagram fails to load SQLite schema
197 48596 SQL::Translator::Diff::schema_diff should produce a list in
199 44907 SQL::Translator::Producer::PostgreSQL produce() in list context
200 should return a list of statements
202 # ----------------------------------------------------------
204 # ----------------------------------------------------------
205 * Fixed Pg parser - caching the compiled P::RD schema is a *very*
207 * Fix MSSQL handling of ON UPDATE/DELETE RESTRICT
208 * Delay MSSQL FK constraint deployment until after all CREATE TABLE
210 * Coerce other engine's bytea/blob/clob datatypes to VarBinary
212 # ----------------------------------------------------------
214 # ----------------------------------------------------------
215 * Multiple test and dependency adhustments to make smokers happy
216 * Fix YAML producer wrt extra attribute
217 * Added support for "time(stamp) (p) with time zone" for Pg producer (mo)
219 # ----------------------------------------------------------
221 # ----------------------------------------------------------
222 * Add parser support for MySQL default values with a single quote
223 * Properly quote absolute table names in the MySQL producer
224 * Added CREATE VIEW subrules for mysql parser (wreis)
225 * Many fixes to code and tests for trigger's "database_events"
226 * Added semi-colon for (DROP|CREATE) TYPE statements in the Pg producer (wreis)
227 * ALTER TABLE/ALTER COLUMN/DROP DEFAULT support in Pg producer (mo)
228 * XML parser support for multi-event triggers
229 * SQLite producer support for multi-event triggers
230 * XML parser switched from XML::XPath to XML::LibXML
231 * Pg producer ALTER TABLE/COLUMN and DROP DEFAULT support
232 * MySQL producer skips length attribute for columns which do not support that
233 attribute. Currently following column types are added to that list:
234 date time timestamp datetime year
235 * Switch to Module::Install (mandates minimum perl 5.005)
236 * Major cleanup of GraphViz proucer
237 * Massive amount of fixes to SQLite/Pg/Mysql/MSSQL parsers/producers
238 Fix most of the problems uncovered by the roundtrip test framework
240 - Rewind exhausted globs before attempting a read
241 - Do not add xml comment header if no_comments is set
242 - table/field counts are held per schema object, not globally
243 - no more variable table and column names in SQLite and MSSQL
244 - VIEW support for Pg parser, also some cleanups
245 - The way we generate Pg create view statements was not standards compliant
246 (per RhodiumToad in #postgresql)
247 - Disable MSSQL view/procedure production - they never worked in the first place
248 - SQLite/MSSQL improvements:
249 - Support parsing of all DROP clauses
250 - Support parsing of field-level comments
251 - When producing do not append table names to constraint/index names
253 # ----------------------------------------------------------
255 # ----------------------------------------------------------
256 * Add support for temporary tables in Pg (nachos)
257 * Create Trigger support for SQLite
258 * GraphViz producer improvements
260 # ----------------------------------------------------------
262 # ----------------------------------------------------------
263 <BORKED RELEASE DELETED OFF CPAN>
265 # ----------------------------------------------------------
267 # ----------------------------------------------------------
268 * parsing MySQL CURRENT_TIMESTAMP as scalar ref so it can be produced without
270 * Add ignore_opts parser arg (to ignore table options) in Parser::MySQL (jgoulah)
271 * Skip tests for buggy Spreadsheet::ParseExcel versions (rbo)
272 * Add support for skip tables parser arg in Parser::DBI::MySQL (jgoulah)
273 * Changed behaviour of ::Producer::Oracle when returning an array of statements
274 to make it compatible to DBI->do()
275 * Fixed a few bugs in ::Producer::Oracle
276 * Applied patch from jgoulah to support mysql's MERGE option
277 * Applied patch from rbo to add support of multiple database events on a trigger
278 * Applied patch from lukes to allow drop if exists in sqlite producer, with
280 * Applied patch from rjbs with minor changes, now we support scalar refs in
282 * Fixed SQLite producer to end index statements in newlines, in scalar context
283 * Decreed that all list context statements shall not end in ; or ;\n
284 * Fixed SQLite, Diff and MySQL producers to agree with Decree.
285 * Added support for CREATE VIEW + tests in the Pg producer (wreis)
286 * Added support for CREATE VIEW + tests in the sqlite producer (groditi)
287 * Added proper argument parsing and documentation to MySQL Parser and
289 * Using DROP VIEW instead of OR REPLACE clause in the Pg producer, as replace
290 only allows replacement with identical set of columns (wreis)
291 * Added support for DROP VIEW and fixed CREATE VIEW statement in the sqlite
293 * Removed source_db and target_db accessors from Diff (throwback to old version,
294 only output_db is used)
297 * Support for longer varchar fields in MySQL
299 # ----------------------------------------------------------
301 # ----------------------------------------------------------
302 * Added support for CREATE VIEW + tests in the mysql producer (groditi)
303 * Added support for SET fields in the mysql producer + test (groditi)
304 * Added support for proper booleans in the mysql producer, when a mysql version
305 of at least 4.x is supplied
306 * Added support for proper enums under pg (as of 8.3), with pg version check,
307 and deferrable constraints
308 * Added support to truncate long constraint and index names in the mysql
309 producer, because of a change to DBIx::Class to produce such long names in
312 # ----------------------------------------------------------
314 # ----------------------------------------------------------
316 * Fix Pg produces idea of which field types need a size param (wreis)
317 * Add support for COLLATE table option to MySQL parser
318 * Allow DEFAULT CHARACTER SET without '=' (as produced by mysqldump)
320 # -----------------------------------------------------------
321 # 0.0899_02 2008-01-29
322 # ----------------------------------------------------------
324 * Major refactoring of SQL::Translator::Diff again:
325 * Diff is no longer one huge monolithic function.
326 * Added more tests for diff
327 * When producing diffs for MySQL you will (by default) get single alter
329 * SQLite can also do remove columns (by creating a temp table as shown in
330 http://sqlite.org/faq.html#q11
331 * Columns can be renamed if the new schema is from a form that can have metadata
332 (which is pretty much anything but an SQL file.) It does this by looking at
333 renamed_from in the $field->extra
334 * Updated Oracle and Postgres producers
337 # -----------------------------------------------------------
338 # 0.0899_01 2007-10-21
339 # ----------------------------------------------------------
341 * SQL::Translator::Diff now uses the ::Producer modules to create diffs
342 This *will* break back-compatibility
343 Use sqlt-diff-old for the previous one, and fix producers!
345 # -----------------------------------------------------------
347 # ----------------------------------------------------------
349 * Patched to ignore all TT versions >= 2.15 until TT is fixed :(
351 # -----------------------------------------------------------
353 # -----------------------------------------------------------
355 * Patched 18ttschema-producer.t and 33tt-table-producter.t to skip on TT 2.15,
358 # -----------------------------------------------------------
360 # -----------------------------------------------------------
362 * Patched MySQL producer to name constraints sanely, thanks Ash
363 * Added patch to Producer::DB2 to avoid dependency issues with foreign keys
364 * Added patch to remove single quotes for numeric default values in Producer::DB2
365 * Fixed Parser::SQLite to require a semicolon after a create trigger statement
366 * Added patch from avinash to add CASCADE to pg table drops
368 # -----------------------------------------------------------
370 # -----------------------------------------------------------
372 * Added patch to use default values for Pg timestamp fields
374 # -----------------------------------------------------------
376 # -----------------------------------------------------------
378 * Added patch from Ash to separate DROP statements in mysql producer in
380 * Fixed up SQLites usage of no-comments
382 # -----------------------------------------------------------
384 # -----------------------------------------------------------
386 * Made Trigger check that a give table exists in on_table - castaway
387 * Split some producers (DB2, MySQL, SQLite, PostgreSQL) into sub methods (others
388 to follow) - castaway
389 * Add alter_* methods to some Producers and docs to Producer.pm (for use by Diff
391 * Made changes to allow producers to return a list of statements - castaway
392 * Split sqlt-diff into script and module - castaway
393 * Added quote_table_names and quote_field_names patch (omega, zamolxes) - castaway
394 * Added DB2 Producer - castaway
395 * Added mysql_character_set for 4.1+ -mda
396 * New filters, Names and Globals. -mda
397 * Added the initial work on a template based Dia UML producer. -mda
399 # -----------------------------------------------------------
401 # -----------------------------------------------------------
402 * YAML parser supports extra attributes on tables.
404 * All schema objects now support the extra attribute, so can
405 have arbitary name/value data attached to them.
407 * Refactoring: Added SQL::Translator::Schema::Object - base
408 class for all Schema objects.
410 * Changes to MySQL Parser (Dave Howorth)
411 - ignore INSERT statements
412 - permit ALTER TABLE ADD FOREIGN KEY
413 - allow trailing comma on last field in CREATE statements
414 - collect the database name
417 - Can pass extra variables using tt_vars producer arg.
418 - Can pass extra config using tt_conf producer arg.
419 - Variables and config can be passed on the command line
420 with --tt-var and --tt-conf options to sqlt.
422 * Added schema filters.
425 - Added 'mysql_table_type' extra attribute on tables.
426 - Works out InnoDB tables from constraints.
427 - mysql_charset and mysql_collate extra attributes for tables and fiels.
430 # -----------------------------------------------------------
432 # -----------------------------------------------------------
433 * Added SQL::Translator::Manual
435 * Installation process now uses Module::Build
437 * Added new "Dumper" producer
439 * Changed the native SQL Fairy XML format to a fixed mapping.
440 *NB:* You should convert your existing XML schema. See the
441 SQL::Translator::Parser::XML::SQLFairy docs.
443 * Added producers: TT::Base and TT::Table.
445 # -----------------------------------------------------------
447 # -----------------------------------------------------------
448 * Added "COMMENT ON *" syntax to PostgreSQL parser
450 * Some fixes to Oracle parser as reported by Gail Binkley
452 * Added support in PostgreSQL parser for all "ALTER TABLE" statements
454 * Now distributing sqlt-diff script as it's pretty usable
456 * Added new options to sqlt-graph and GraphViz producer (Dave Cash)
458 # -----------------------------------------------------------
460 # -----------------------------------------------------------
462 * Increased version of Constants module to 1.41 to avoid a problem
463 where 0.02 has 1.4 of that file and 0.03 had 1.06 which confused
466 * Hard-coded all the PREREQ_PM modules in Makefile.PL (rather than
467 setting them dynamically) so that automated tests would pass
469 # -----------------------------------------------------------
471 # -----------------------------------------------------------
473 * Added parsers: XML::SQLFairy, Sybase, SQLite, DBI-MySQL,
474 DBI-PostgreSQL, DBI-SQLite, DBI-Sybase, Storable, YAML
476 * Added producers: XML::SQLFairy, TTSchema, Storable, YAML
478 * HTML producer now uses stylesheets to allow easy customization of colors
480 * Many bug fixes to most every module
482 * Added "sqlt-dumper" script to help create a script for dumping
483 a database a la "mysqldump"
485 * Reversed the arrowheads on the graphical producers to show the
486 relationships in a more standard way
488 * Changes all included script names to start with "sqlt"
490 * Added capturing and printing most embedded table and field comments
492 # -----------------------------------------------------------
494 # -----------------------------------------------------------
496 * Added parsers for Excel and Oracle
498 * Removed Sybase parser because it didn't actually work
500 * Added ClassDBI, Diagram, GraphViz, HTML, POD, SQLite, Sybase producers
502 * Added Schema classes to represent schema as objects
504 * Removed "Raw" producer in favor of the Schema classes
506 * Removed "Validator" class as the Schema classes validate themselves
508 * Improved all existing parsers and producers, expanding them to
509 handle foreign keys much better, produce better output, etc.
511 * Added sqlt-diagram.pl and sqlt-graphviz.pl as CLI frontends to the
514 * Added sql_translator.cgi as a web-form frontend to graphical producers
516 * Expanded test suite
518 # -----------------------------------------------------------
520 # -----------------------------------------------------------
522 * Added parsers: XML::SQLFairy, Sybase, SQLite, DBI-MySQL,
523 DBI-PostgreSQL, DBI-SQLite, DBI-Sybase, Storable, YAML
525 * Added producers: XML::SQLFairy, TTSchema, Storable, YAML
527 * HTML producer now uses stylesheets to allow easy customization of colors
529 * Many bug fixes to most every module
531 * Added "sqlt-dumper" script to help create a script for dumping
532 a database a la "mysqldump"
534 * Reversed the arrowheads on the graphical producers to show the
535 relationships in a more standard way
537 * Changes all included script names to start with "sqlt"
539 * Added capturing and printing most embedded table and field comments