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