1 Changes for SQL::Translator
3 * Add support for monotonically increasing SQLite autoincs (GH#47)
4 * Add support for CHECK constraint in SQLite producer (GH#57)
5 * Add support for CHECK constraint in POD producer (GH#63)
6 * Fix forgotten quoting in the MySQL DROP TABLE diff producer (GH#50)
7 * Fix Pg grammar parsing of UUID, time, timetz columns (RT#100196, GH#52)
8 * Add support for USING and WHERE on indexes in PostgreSQL producer
9 and parser (RT#63814, GH#52)
10 * Improve add_trigger consistency between producers (GH#48)
11 * Declare dependencies in deterministic order (RT#102859)
12 * Multiple speedups of naive internal debugging mechanism (GH#54)
13 * Remove dependency on List::MoreUtils ( http://is.gd/lmu_cac_debacle )
14 * Fix parsing of strings with leading whitespace for MySQL, Oracle, PostgreSQL,
16 * Fix parsing of MySQL column comments (RT#83380)
17 * Fix multi-line comments in YAML, JSON and PostgreSQL producers
18 * Fix identifier quoting in PostgreSQL diff producer
19 * Fix missing semicolons between PostGIS statements
20 * Fix string and identifier quoting in PostGIS statements
24 * Fix Oracle producer generating an unnecessary / at the end in case there
26 * Skip HTML tests if CGI is not installed (RT#98027)
27 * Fix JSON and YAML tests if the defaults have been tweaked (RT#98824)
28 * Fixes for parsing and producing identifiers and values that need
29 quoting and escaping for SQLite, MySQL, PostgreSQL, SQLServer and
30 Oracle (RT#90700, RT#31034)
31 * Add support for ALTER TABLE ... ADD CONSTRAINT to Oracle parser
32 * Add trigger support to Oracle parser (RT#62927)
33 * Fix erroneous PostgreSQL floating point type translations (RT#99725)
34 * Remove executable bit from Parser/JSON.pm (RT#100532)
35 * Update the Free Software Foundation's address (RT#100531)
36 * Provide default index names for SQLite (GH#45)
37 * Fix SQLite diffing on perl 5.8.1
38 * Fix multi-column indexes in Parser::DBI::PostgreSQL
39 * Fix array data types in Parser::PostgreSQL (GH#49)
40 * Fix multidimensional sizes in Parser::PostgreSQL
44 * Fix test failure if Test::PostgreSQL is installed but not working
48 * Add Json and hstore types to Pg Parser (cloudinstustrie)
49 * Fix DROP TABLE in SQL Server Producer
50 * Fix Pg DBI parser test (Dagfinn Ilmari Mannsåker)
51 * Remove spurious warnings (Matt Phillips, Wallace Reis)
52 * Fix MySQL producer for columns with scalar ref in 'ON UPDATE' (Wallace Reis)
53 * Fix handling of views in MySQL DBI parser
54 * Fix handling of renamed fields in SQLite diff (Peter Mottram)
55 * Check numeric equality of default values in numeric-type fields (Wallace Reis)
56 * Fix handling of renamed fields in renamed tables in Pg diff (Peter Mottram)
58 0.11018 2013-10-31 🎃
60 * Revert "Fix AUTOINCREMENT in SQLite"
64 * Apply quotes to fix tables that are reserved words, DBI::SQLServer (Jonathan C. Otsuka)
65 * Add DECIMAL_DIGITS to field size for scale info, DBI::SQLServer (Jonathan C. Otsuka)
66 * De-linkify XML namespace in docs (RT#81838)
67 * Allow both single and double quotes for values in MySQL parser
68 * Fix diff for altering two things per column - add ; at the end
69 * Call all diff methods in list context (it can be merged later)
70 * Fix Pg diff issue with drop constraint on primary keys
71 * SQLite support for SET NULL, SET DEFAULT and NO ACTION in FK clauses
72 * Clean up properly after Parser::DBI::PostgreSQL tests
73 * Fix typos in error messages
74 * Add SQL_TINYINT and SQL_BIGINT to the type map in
75 SQL::Translator::Schema::Field
76 * Add JSON parser and producer (Jon Jensen)
77 * Clean up TTSchema doc some (Gavin Shelley)
78 * Fix AUTOINCREMENT in SQLite (Rafael Porres Molina)
82 * Allow passing an arrayref to SQLT->filename (lost in Mooification)
86 * Fix stupid missing version number in SQL::Translator::Schema::Object
90 * Relicense under Perl 5 terms
94 * Remove SQL::Translator::Schema::Graph as announced in 0.11011
95 * Remove a number of no longer needed deps
99 * Fix missing dep (List::MoreUtils)
101 0.11013_01 2012-09-22
103 * Convert SQL::Translator, ::Schema and ::Schema::* to Moo
104 * Fix leaks by weakening circular references between schema objects
108 * Make MySQL producer add NULL after every nullable field, conforming to SQL
109 standard, and avoiding MySQL bugs
113 * Fix/update quoting in PostgreSQL producer
114 * Add missing quote function to SQLServer producer
115 * Fix incorrect Parser::DBI documentation (RT#60878)
119 [ INCOMPATIBLE CHANGES ]
121 * SQLT no longer supports setting separate conflicting values for the now
122 deprecated 'quote_table_names' and 'quote_field_names'. Instead their values
123 are proxied to the new 'quote_identifiers'. If 'quote_identifiers' is
124 supplied, the legacy settings are ignored (with a warning). If nothing is
125 specified the default is TRUE as before. If only one is specified - default
126 to its value for everything, and if both are specified with a conflicting
127 value an exception is thrown.
129 * Partial quoting support has been added in SQLite. It is currently disabled by
130 default, you need to request is explicitly with quote_identifiers => 1. In a
131 future version of SQL::Translator *THIS DEFAULT BEHAVIOR WILL CHANGE*.
132 If you do NOT WANT quoting, set quote_identifiers to a false value to
133 protect yourself from changes in a future release.
135 * Bump the default MySQL parser version to MySQL 4.0
139 * script/sqlt-graph now accepts a --trace option
140 * Fixes to SQLite foreign keys production (patch from Johan Viklund)
141 closes RT#16412, RT#44769
142 * ON DELETE/UPDATE actions for SQLite (patch from Lukas Thiemeier)
143 closes RT#70734, RT#71283, RT#70378
144 * Fix data preservation on SQLite diffs involving adding/dropping columns
145 * Support for triggers in PostgreSQL producer and parser
146 * Correct Data Type in SQLT::Parser::DBI::PostgreSQL (patch from Andrew Pam)
147 * Fix index issue in SQLT::Parser::DBI::PostgreSQL
148 * Add column and table comments in SQLT::Parser::DBI::PostgreSQL(patch from Andrew Pam)
149 * Stop the DBI parser from disconnecting externally supplied DBI handles (RT#35868)
150 * Fixed alter_drop_constraint for foreign keys and applying multiple changes
151 via alter_field to a column in Postgres Producer
152 * Added a working mechanism for naming foreign keys in the PostgreSQL producer
153 * Fix PostgreSQL ignoring default values with specified data type
154 * Fix PostgreSQL parser support for (N)::int defaults (patch by Tina Müller)
155 * Fix possible name duplication in SQLlite producer
156 * Oracle does not accept ON DELETE/UPDATE RESTRICT (though it is the actual default)
157 fix by not adding the ON DELETE/UPDATE clause at all
158 * Changed dependency on Digest::SHA1 to the core-bundled Digest::SHA (RT#67989)
159 * Support for double quoted and bit strings as default values in MySQL parser
160 * Improved VIEW support in MySQL parser
161 * Proper handling of CURRENT_TIMESTAMP default values in MySQL parser (RT#65844)
162 * Check in MySQL parser to avoid trying to parse a table defined twice in the same
163 file as indices (and probably other things) get messed up
164 * Workaround for some MySQL quirks on primary key definitions
165 * Fix dropping primary keys in MySQL diffs (RT#62250, patch from Nick Bertrand)
166 * MySQL producer does not attempt to write out non-existent unique constraint names
167 * MySQL parser correctly differentiates between signed and unsigned integer column
169 * Replace Class::Accessor::Fast dependency with already-included Moo
170 * Entire codebase is now free of tabs and trailing whitespace
171 * Spellfixes (RT#68912)
172 * Fix Diagram Producer POD (RT#71397, RT#71398)
173 * Fix Diagram Producer to use correct binmode on output (RT#71399)
174 * Fix ignored option to script/sqlt-diagram (RT#5992)
175 * Fix t/17sqlfxml-producer.t failures due to whitespace differences introduced by
176 environment config snippets (RT#70786)
177 * Fix assembly of Table objects with numbered columns being added out of order
178 (RT#74771) (based on patch from Jonathan Otsuka)
179 * Fix syntax error in SQL::Translator::Producer::Latex (RT#74953)
180 * Deprecate SQL::Translator::Schema::Graph and the as_graph() schema method
181 * Bump minimum supported perl version to 5.8.1 (mostly due to Moo)
185 * Add "if exists" to drop view statements in Pg.
189 * Fix MySQL producer to properly quote all table names on output (patch from geistteufel)
193 * Correctly create and parse FK constraints in SQLite
194 * Correct postgis geography type insertion and linebreak fix for multiple geometry/geography columns
195 * made PostgreSQL producer consistent with other producers in terms of
196 quoting and allowing functions in constraints and indices
197 * Add distinction of autoinc and regular primary keys to the GraphViz producer
198 * Fix odd invocation of Test::More::pass() in t/36-filters.t (RT#64728)
199 * Quote everything in SQL Server
200 * Turn off constraints before dropping tables in SQL Server
201 * Make true unique constraints if needed in SQL Server
202 * Fixed Producer::PostgresSQL to output array type after type size,
203 i.e. varchar(64)[] rather than varchar[](64)
207 * Fix POD typo in SQL/Translator/Schema/Trigger.pm
208 * Add explicit Scalar::Util to the deplist for really old perls
209 * Add support for PostGIS Geometry and Geography data types in the Pg producer
210 * Some minor fixes to squash warnings on new perls
211 * Support a custom_type_name hint when creating enum types in PostgreSQL
212 * Fix sqlt options/pod mismatch (RT#58318)
213 * Oracle Producer multicolumn constraint support
214 * Add support for triggers in the MySQL producer
215 * Fix unstable order of View's in MySQL parser
219 * Fix Producer::Oracle varchar2 without size def (ORA-00906: missing right
221 * Fix Producer::Oracle translate float and double to float instead of number
222 * Fix Producer::Oracle generation of too long unique constraint names
223 * Fix Producer::SQLite when generating VIEWs with add_drop_table => 1
224 * Fix Producer::MySQL not quoting index names when requested (RT#56173)
225 * Fix Producer::MySQL wrapping extra ()s around VIEW SELECT-ors (RT#56419)
226 * Fix Field::default_value to behave like a real accessor (allow undef as
227 an unsetting argument)
228 * Fix Mysql/Pg/SQLite/MSSQL producers to properly *not* quote numeric default
230 * Producer::Oracle tests now use Test::Differences
231 * Prettify output of SQLite producer (less bogus newlines)
232 * Augment SQLite and Pg producers to accept a perl-formatted (%d.%03d%03d)
233 and regular no-leading-zero (X.X.X) *_version producer args
237 * Fix Parser::DBI::Oracle reading too many tables (RT#49413)
238 * Fix Parser::MySQL tripping up on PRIMARY KEY ... USING (currently value is ignored) (RT#50468)
239 * Fix runaway debug trace (RT#52276)
240 * Fix Parser::PostgreSQL choking on commit; statements in DDL (#RT52277)
241 * Producer::Oracle now respects quote_field|table_names, and
242 no longer does name munging of reserved table names
243 * Producer::Oracle now correctly outputs databse-unique index names
247 * Fix PG producer numeric precision regression (RT#49301)
248 * Add DB2 producer numeric/decimal precision output
249 * Fix Oracle producer creating numeric precision statements that the test case expects (no whitespace)
250 * Add Oracle producer creating drop view statements like PG producer does
251 * Fix SQL::Translator::Diff to use producer_args instead of producer_options
255 * Pg parser fixes to deal properly with MATCH <type>
256 * Pg parser fixes to parse timestamp attributes correctly
257 * Fix broken default detection in script/sqlt (RT#27438)
258 * Fix dependency issues with LibXML and TT
262 * Depend on fixed Parse::RecDescent
263 * Added skip-tables and skip-tables-like options to Diagram
267 * Removed last use of Readonly
268 * Adjusted YAML dependency
272 * Re-add version numbers to files, else cpan's "upgrade" gets very confused
273 * Replaced code using Readonly, since most of the rest uses constant, and thats already a dep
274 * Moved YAML and XML::LibXML back to recommends, the tests for both now skip if not installed
275 * Bumped to 0.11000 to supercede 0.10 which has incorrect numbering scheme
279 * Resolved the following RT bugs (thanks to everyone for reporting!):
280 - 25791 does not recognize PostgreSQL ON_ERROR_STOP
281 - 29265 sqlt-diagram: --natural-join needs Graph::Directed
282 - 37814 SQLite translator failing to parse schema
283 - 42548 Producer::PostgreSQL incorrectly inserts the size in
284 'time(stamp)? with(out) time zone' fields
285 - 43173 SQL::Translator::Parser without versionnumber - will install
288 - 47026 META.yml is not packaged due to MANIFEST.SKIP (easyfix)
289 - 32130 Move from XML::XPath to XML::LibXML::XPathContext
291 - 13915 missing optional prerequisite cause make test to fail
292 - 8847 Diagram.pm: BINMODE missing in printing of graphic file.
293 - 21065 GraphViz producer fails on tables named 'node'
294 - 35448 Producer::PostgreSQL types without size
295 - 22026 sqlt-diagram uses -f arg twice
296 - 47897 [PATCH] Fix uninitialized value within @_ in (uc|lc)
297 - 47668 Mysql Parser doesn't recognize key types
298 - 46448 sqlt-graph errors out on MySQL DDL with btree keys
299 - 47176 Add Foreign Key support to Parser::DBI::PostgreSQL.pm
300 - 48025 MySQL Producer: Case inconsistency between elements in
301 @no_length_attr and $data_type
302 - 48569 sqlt-diagram fails to load SQLite schema
303 - 48596 SQL::Translator::Diff::schema_diff should produce a list in
305 - 44907 SQL::Translator::Producer::PostgreSQL produce() in list context
306 should return a list of statements
310 * Fixed Pg parser - caching the compiled P::RD schema is a *very*
312 * Fix MSSQL handling of ON UPDATE/DELETE RESTRICT
313 * Delay MSSQL FK constraint deployment until after all CREATE TABLE
315 * Coerce other engine's bytea/blob/clob datatypes to VarBinary
319 * Multiple test and dependency adhustments to make smokers happy
320 * Fix YAML producer wrt extra attribute
321 * Added support for "time(stamp) (p) with time zone" for Pg producer (mo)
325 * Add parser support for MySQL default values with a single quote
326 * Properly quote absolute table names in the MySQL producer
327 * Added CREATE VIEW subrules for mysql parser (wreis)
328 * Many fixes to code and tests for trigger's "database_events"
329 * Added semi-colon for (DROP|CREATE) TYPE statements in the Pg producer (wreis)
330 * ALTER TABLE/ALTER COLUMN/DROP DEFAULT support in Pg producer (mo)
331 * XML parser support for multi-event triggers
332 * SQLite producer support for multi-event triggers
333 * XML parser switched from XML::XPath to XML::LibXML
334 * Pg producer ALTER TABLE/COLUMN and DROP DEFAULT support
335 * MySQL producer skips length attribute for columns which do not support that
336 attribute. Currently following column types are added to that list:
337 date time timestamp datetime year
338 * Switch to Module::Install (mandates minimum perl 5.005)
339 * Major cleanup of GraphViz proucer
340 * Massive amount of fixes to SQLite/Pg/Mysql/MSSQL parsers/producers
341 Fix most of the problems uncovered by the roundtrip test framework
343 - Rewind exhausted globs before attempting a read
344 - Do not add xml comment header if no_comments is set
345 - table/field counts are held per schema object, not globally
346 - no more variable table and column names in SQLite and MSSQL
347 - VIEW support for Pg parser, also some cleanups
348 - The way we generate Pg create view statements was not standards compliant
349 (per RhodiumToad in #postgresql)
350 - Disable MSSQL view/procedure production - they never worked in the first place
351 - SQLite/MSSQL improvements:
352 - Support parsing of all DROP clauses
353 - Support parsing of field-level comments
354 - When producing do not append table names to constraint/index names
358 * Add support for temporary tables in Pg (nachos)
359 * Create Trigger support for SQLite
360 * GraphViz producer improvements
364 * <BORKED RELEASE DELETED OFF CPAN>
368 * parsing MySQL CURRENT_TIMESTAMP as scalar ref so it can be produced without
370 * Add ignore_opts parser arg (to ignore table options) in Parser::MySQL (jgoulah)
371 * Skip tests for buggy Spreadsheet::ParseExcel versions (rbo)
372 * Add support for skip tables parser arg in Parser::DBI::MySQL (jgoulah)
373 * Changed behaviour of ::Producer::Oracle when returning an array of statements
374 to make it compatible to DBI->do()
375 * Fixed a few bugs in ::Producer::Oracle
376 * Applied patch from jgoulah to support mysql's MERGE option
377 * Applied patch from rbo to add support of multiple database events on a trigger
378 * Applied patch from lukes to allow drop if exists in sqlite producer, with
380 * Applied patch from rjbs with minor changes, now we support scalar refs in
382 * Fixed SQLite producer to end index statements in newlines, in scalar context
383 * Decreed that all list context statements shall not end in ; or ;\n
384 * Fixed SQLite, Diff and MySQL producers to agree with Decree.
385 * Added support for CREATE VIEW + tests in the Pg producer (wreis)
386 * Added support for CREATE VIEW + tests in the sqlite producer (groditi)
387 * Added proper argument parsing and documentation to MySQL Parser and
389 * Using DROP VIEW instead of OR REPLACE clause in the Pg producer, as replace
390 only allows replacement with identical set of columns (wreis)
391 * Added support for DROP VIEW and fixed CREATE VIEW statement in the sqlite
393 * Removed source_db and target_db accessors from Diff (throwback to old version,
394 only output_db is used)
395 * Support for longer varchar fields in MySQL
399 * Added support for CREATE VIEW + tests in the mysql producer (groditi)
400 * Added support for SET fields in the mysql producer + test (groditi)
401 * Added support for proper booleans in the mysql producer, when a mysql version
402 of at least 4.x is supplied
403 * Added support for proper enums under pg (as of 8.3), with pg version check,
404 and deferrable constraints
405 * Added support to truncate long constraint and index names in the mysql
406 producer, because of a change to DBIx::Class to produce such long names in
411 * Fix Pg produces idea of which field types need a size param (wreis)
412 * Add support for COLLATE table option to MySQL parser
413 * Allow DEFAULT CHARACTER SET without '=' (as produced by mysqldump)
417 * Major refactoring of SQL::Translator::Diff again:
418 * Diff is no longer one huge monolithic function.
419 * Added more tests for diff
420 * When producing diffs for MySQL you will (by default) get single alter
422 * SQLite can also do remove columns (by creating a temp table as shown in
423 http://sqlite.org/faq.html#q11
424 * Columns can be renamed if the new schema is from a form that can have metadata
425 (which is pretty much anything but an SQL file.) It does this by looking at
426 renamed_from in the $field->extra
427 * Updated Oracle and Postgres producers
432 * SQL::Translator::Diff now uses the ::Producer modules to create diffs
433 This *will* break back-compatibility
434 Use sqlt-diff-old for the previous one, and fix producers!
438 * Patched to ignore all TT versions >= 2.15 until TT is fixed :(
442 * Patched 18ttschema-producer.t and 33tt-table-producter.t to skip on TT 2.15,
447 * Patched MySQL producer to name constraints sanely, thanks Ash
448 * Added patch to Producer::DB2 to avoid dependency issues with foreign keys
449 * Added patch to remove single quotes for numeric default values in Producer::DB2
450 * Fixed Parser::SQLite to require a semicolon after a create trigger statement
451 * Added patch from avinash to add CASCADE to pg table drops
455 * Added patch to use default values for Pg timestamp fields
459 * Added patch from Ash to separate DROP statements in mysql producer in
461 * Fixed up SQLites usage of no-comments
465 * Made Trigger check that a give table exists in on_table - castaway
466 * Split some producers (DB2, MySQL, SQLite, PostgreSQL) into sub methods (others
467 to follow) - castaway
468 * Add alter_* methods to some Producers and docs to Producer.pm (for use by Diff
470 * Made changes to allow producers to return a list of statements - castaway
471 * Split sqlt-diff into script and module - castaway
472 * Added quote_table_names and quote_field_names patch (omega, zamolxes) - castaway
473 * Added DB2 Producer - castaway
474 * Added mysql_character_set for 4.1+ -mda
475 * New filters, Names and Globals. -mda
476 * Added the initial work on a template based Dia UML producer. -mda
480 * YAML parser supports extra attributes on tables.
481 * All schema objects now support the extra attribute, so can
482 have arbitary name/value data attached to them.
483 * Refactoring: Added SQL::Translator::Schema::Object - base
484 class for all Schema objects.
485 * Changes to MySQL Parser (Dave Howorth)
486 - ignore INSERT statements
487 - permit ALTER TABLE ADD FOREIGN KEY
488 - allow trailing comma on last field in CREATE statements
489 - collect the database name
491 - Can pass extra variables using tt_vars producer arg.
492 - Can pass extra config using tt_conf producer arg.
493 - Variables and config can be passed on the command line
494 with --tt-var and --tt-conf options to sqlt.
495 * Added schema filters.
497 - Added 'mysql_table_type' extra attribute on tables.
498 - Works out InnoDB tables from constraints.
499 - mysql_charset and mysql_collate extra attributes for tables and fiels.
503 * Added SQL::Translator::Manual
504 * Installation process now uses Module::Build
505 * Added new "Dumper" producer
506 * Changed the native SQL Fairy XML format to a fixed mapping.
507 *NB:* You should convert your existing XML schema. See the
508 SQL::Translator::Parser::XML::SQLFairy docs.
509 * Added producers: TT::Base and TT::Table.
513 * Added "COMMENT ON *" syntax to PostgreSQL parser
514 * Some fixes to Oracle parser as reported by Gail Binkley
515 * Added support in PostgreSQL parser for all "ALTER TABLE" statements
516 * Now distributing sqlt-diff script as it's pretty usable
517 * Added new options to sqlt-graph and GraphViz producer (Dave Cash)
521 * Increased version of Constants module to 1.41 to avoid a problem
522 where 0.02 has 1.4 of that file and 0.03 had 1.06 which confused
524 * Hard-coded all the PREREQ_PM modules in Makefile.PL (rather than
525 setting them dynamically) so that automated tests would pass
529 * Added parsers: XML::SQLFairy, Sybase, SQLite, DBI-MySQL,
530 DBI-PostgreSQL, DBI-SQLite, DBI-Sybase, Storable, YAML
531 * Added producers: XML::SQLFairy, TTSchema, Storable, YAML
532 * HTML producer now uses stylesheets to allow easy customization of colors
533 * Many bug fixes to most every module
534 * Added "sqlt-dumper" script to help create a script for dumping
535 a database a la "mysqldump"
536 * Reversed the arrowheads on the graphical producers to show the
537 relationships in a more standard way
538 * Changes all included script names to start with "sqlt"
539 * Added capturing and printing most embedded table and field comments
543 * Added parsers for Excel and Oracle
544 * Removed Sybase parser because it didn't actually work
545 * Added ClassDBI, Diagram, GraphViz, HTML, POD, SQLite, Sybase producers
546 * Added Schema classes to represent schema as objects
547 * Removed "Raw" producer in favor of the Schema classes
548 * Removed "Validator" class as the Schema classes validate themselves
549 * Improved all existing parsers and producers, expanding them to
550 handle foreign keys much better, produce better output, etc.
551 * Added sqlt-diagram.pl and sqlt-graphviz.pl as CLI frontends to the
553 * Added sql_translator.cgi as a web-form frontend to graphical producers
554 * Expanded test suite
558 * Added parsers: XML::SQLFairy, Sybase, SQLite, DBI-MySQL,
559 DBI-PostgreSQL, DBI-SQLite, DBI-Sybase, Storable, YAML
560 * Added producers: XML::SQLFairy, TTSchema, Storable, YAML
561 * HTML producer now uses stylesheets to allow easy customization of colors
562 * Many bug fixes to most every module
563 * Added "sqlt-dumper" script to help create a script for dumping
564 a database a la "mysqldump"
565 * Reversed the arrowheads on the graphical producers to show the
566 relationships in a more standard way
567 * Changes all included script names to start with "sqlt"
568 * Added capturing and printing most embedded table and field comments