Mark Addison [Wed, 8 Jun 2005 14:48:07 +0000]
Added test for mysql_table_type. Removed dodgey testing code so test works for everyone else.
Mark Addison [Wed, 8 Jun 2005 14:44:08 +0000]
Added mysql extra attribs for charset and collation.
Mark Addison [Wed, 8 Jun 2005 11:30:15 +0000]
Parses extra attributes for tables. Tweaked debug output.
Ken Youens-Clark [Tue, 7 Jun 2005 16:55:41 +0000]
Some cosmetic changes.
Ken Youens-Clark [Tue, 7 Jun 2005 16:49:55 +0000]
Some changes that should have been applied a while back.
Ben Faga [Tue, 31 May 2005 18:23:31 +0000]
Muffled a warning message, by changing '">&NULL"' (which I don't really understand) to '\*NULL' which is a nice pointer to the file handle opened in the line above.
Ben Faga [Thu, 26 May 2005 19:45:43 +0000]
Added Class::MakeMethods to the requirements.
Ben Faga [Wed, 25 May 2005 15:17:49 +0000]
Applied Eric Just's changes to the Oracle producer. His comments follow:
I have made a couple of more changes which you MIGHT want to incorporate into Oracle Producer so that the translation for CHADO works 'out of the box' . I am attaching a new diff against the new version.
Change 1:
Change the field 'name' property to the unreserved name, that way whenever field-name is called the proper unreserved name is returned.
Change 2:
Using a CLOB in a unique key is illegal in Oracle. Convert a column to a varchar(4000) if it is a CLOB and is part of a unique key, warn about this change.
Change 3:
Create the sequence name based on the unreserved name of the table. Since the table gets created with the unreserved name, this keeps the sequence naming consistently based on the table name.
Change 4:
Similar to change 3 except for naming triggers.
Change 5:
remove line that didn't get removed from last merge. (want to append name with number only after the string has been truncated to max_length -2)
Mark Addison [Wed, 25 May 2005 12:38:58 +0000]
Apllied Chris Hilton patch to remove subroutine redefinition
Mark Addison [Wed, 25 May 2005 12:38:03 +0000]
Applied Chris Hilton patch to remove 'Use of uninitialized value in addition' warnings
Mark Addison [Wed, 25 May 2005 11:56:24 +0000]
Fixed InnoDB table type errors (Chris Hilton patch)
Mark Addison [Wed, 25 May 2005 11:51:59 +0000]
Applied Chis Hilton patch to fix. (Test used non existant test file)
Mark Addison [Wed, 25 May 2005 11:37:58 +0000]
Added explicit close on FILE and fixed spelling mistaked (from Chris Hilton patch
Mark Addison [Wed, 25 May 2005 11:25:15 +0000]
Added Chris Hilton's patch so version number test is based on current version and not hardcoded.
Mark Addison [Wed, 25 May 2005 11:14:22 +0000]
Fixed broken comment in test (from Chris Hilton patch)
Mark Addison [Wed, 18 May 2005 22:34:10 +0000]
Fixed error propogation when loading filters.
Mark Addison [Wed, 18 May 2005 16:17:41 +0000]
Upped version of Test::More req so we get upto date is_deeply().
Mark Addison [Wed, 18 May 2005 16:14:07 +0000]
Added hack to remove the Graph stuff hack of adding a ref to the translator, to
the schema. Also moved schema equality test to using Test::More::is_deeply
instead of Storable to get better diagnostics on failure.
Mark Addison [Wed, 18 May 2005 15:48:08 +0000]
Fixed. Broke due to changes in YAML.
Mark Addison [Wed, 18 May 2005 15:47:24 +0000]
Fixed YAML testi. Failed due to sqlfairy version increase and YAML not putting
the YAML version in the output anymore (seems to have been commented out of
YAML.pm some versions ago). Set YAML version in Build.pm so we know we get a
version that works.
Allen Day [Fri, 13 May 2005 07:35:58 +0000]
fix to allow GraphViz to load -- someone who understands why this is needed please comment!
Allen Day [Wed, 13 Apr 2005 22:03:23 +0000]
*** empty log message ***
Allen Day [Wed, 13 Apr 2005 20:34:20 +0000]
incrementing for next release
Ken Youens-Clark [Mon, 7 Feb 2005 22:09:32 +0000]
Made the field definition rows alternate "even" and "odd" classes so
you can use CSS to change colors.
Mark Addison [Thu, 13 Jan 2005 21:30:04 +0000]
A SQLServer producer. (They made me do it! :(
Mark Addison [Thu, 13 Jan 2005 11:50:24 +0000]
mysql_table_type extra data and InnoDB derivation fix.
Mark Addison [Thu, 13 Jan 2005 09:44:15 +0000]
Made extra interface more context sensative.
Mark Addison [Thu, 13 Jan 2005 09:02:15 +0000]
Fixed test name
Allen Day [Tue, 21 Dec 2004 01:47:34 +0000]
replaced by TT producer
Mark Addison [Tue, 21 Dec 2004 01:29:23 +0000]
Removed (annoying) warning when order attributes are not used.
Mark Addison [Tue, 21 Dec 2004 01:28:39 +0000]
localised setting of %Data::Dumper::Maxdepth (and Indent), to stop it polluting
the rest of perl and breaking Module::Build!
Ken Youens-Clark [Mon, 20 Dec 2004 17:18:42 +0000]
Accepted changes from Eric Just.
Ken Youens-Clark [Mon, 20 Dec 2004 16:36:40 +0000]
Tests moved from 13graph.t.
Ken Youens-Clark [Mon, 20 Dec 2004 16:36:22 +0000]
Moved graph tests out.
Mark Addison [Mon, 13 Dec 2004 16:32:07 +0000]
Re-added proper error trapping and reporting when trying to set the parser,
producer or a filter to un unknown module/sub (accidently removed by filter
work).
Mark Addison [Sun, 12 Dec 2004 18:38:11 +0000]
Added schema filters
Mark Addison [Sun, 12 Dec 2004 18:34:43 +0000]
Clean up
Jess Robinson [Sat, 27 Nov 2004 16:33:33 +0000]
Drop functions
Mark Addison [Fri, 26 Nov 2004 00:41:56 +0000]
Added TTSchema changes.
Mark Addison [Fri, 26 Nov 2004 00:34:09 +0000]
Added tt-conf option
Mark Addison [Fri, 26 Nov 2004 00:28:06 +0000]
Template config is now passed using tt_conf producer arg. Deprecated passing
it in the producer_args directly.
Mark Addison [Thu, 25 Nov 2004 23:15:23 +0000]
Added tt-vars to pass variables to templates.
Mark Addison [Thu, 25 Nov 2004 23:10:59 +0000]
Deprecated ttargs producer arg in favour of tt_vars
Mark Addison [Thu, 25 Nov 2004 22:32:48 +0000]
Applied Dave Howorth's MySQL parser patches
- ignore INSERT statements
- permit ALTER TABLE ADD FOREIGN KEY
- allow trailing comma on last field in CREATE statements
- collect the database name
Jess Robinson [Sat, 20 Nov 2004 15:47:39 +0000]
DB2.pm the first
Jess Robinson [Sat, 20 Nov 2004 15:45:21 +0000]
DB2 P::RD grammar
Mark Addison [Tue, 16 Nov 2004 21:06:35 +0000]
Re-added ttvars. Added docs and test for ttvars.
Brian O'Connor [Tue, 16 Nov 2004 09:15:36 +0000]
I needed to be able to pass in additional information to the templates (beyond the schema object)
processed by this producer. Before it only passed one argument through to the template but now I pass
all items in the template args hash.
Mark Addison [Tue, 9 Nov 2004 05:27:45 +0000]
Factored _load_sub() out of _tool(). Ground work for adding filters.
Mark Addison [Tue, 9 Nov 2004 02:09:52 +0000]
Refactored producer() and parser() to use a sub, _tool(), implimenting their
shared functionality, in much the same way producer_args() and
parser_args() use _args().
load() now also supports checking a path of base packages. Ground work for adding
a producer and parser paths feature, to make it easier to load them from
different namespaces.
Mark Addison [Fri, 5 Nov 2004 16:41:09 +0000]
Added extra and Schema::Object stuff
Mark Addison [Fri, 5 Nov 2004 16:37:01 +0000]
Added writing of extra data for all objects to XML producer.
Mark Addison [Fri, 5 Nov 2004 15:03:11 +0000]
All Schema objects now have an extra attribute. Added parsing support (and
tests) for this to the SQLF XML parser.
Mark Addison [Fri, 5 Nov 2004 13:19:31 +0000]
Added _attributes class data to SQL::Translator::Schema::Object for sub classes
to declare their attributes with and an init method to initialize the class from
this data.
Mark Addison [Fri, 5 Nov 2004 13:16:49 +0000]
Added diagnostics on fail.
Mark Addison [Thu, 4 Nov 2004 16:29:56 +0000]
Added SQL::Translator::Schema::Object, a base class for all the Schema
objects and made them all use it.
Ken Youens-Clark [Tue, 26 Oct 2004 00:00:41 +0000]
Fixing the error "Can't use an undefined value as a HASH reference at
/Users/kclark/Work/sqlf/sqlfairy/lib/SQL/Translator/Producer/TTSchema.pm
line 123."
Chris Mungall [Sat, 23 Oct 2004 20:18:44 +0000]
throws error if a comment is placed on a non-existent column
Chris Mungall [Sat, 23 Oct 2004 19:58:32 +0000]
fixed parsing of Pg COMMENT ON ... syntax
previously only recognised comments on TABLE and COLUMN
also would not recognise comment_phrases split over multiple lines
now accept all comment types; however, it does not add information
to the datamodel except for TABLE and COLUMN
accepts comments split over multiple lines
will barf if comment includes escaped singlequote ''
test 08 extended to deal with parsing comments gracefully
(does not check contents of datamodel however)
Allen Day [Fri, 15 Oct 2004 03:52:51 +0000]
Producer::Turnkey obsolete. now rely on TTSchema parser (see concommitant
turnkey commit).
modified TTschema to accept 'ttargs' in addition to already present 'ttfile'
so arbitrary template args can be interpolated.
added Schema::Graph unit test (!). minimal.
introduced Log::Log4perl dependency.
modified Schema to have translator() slot to hold parent ref. needed to
get at producer_args(), parser_args(), and _format_name() from Graph.pm
Allen Day [Fri, 15 Oct 2004 02:23:30 +0000]
patch for parser/producer args courtesy of darren (w/ embellishments by me)
Allen Day [Wed, 13 Oct 2004 23:14:06 +0000]
some refactoring. moving to being able to call $schema->as_graph to do
an OM translation.
Allen Day [Wed, 13 Oct 2004 22:31:59 +0000]
lc the template files... flipflop
Allen Day [Wed, 13 Oct 2004 22:24:49 +0000]
almost working. there is a package name mangling problem where the
upcasing doesn't happen properly... i think it's the lack of callback
calling in the right places, or an erroneous callback.
Ken Youens-Clark [Fri, 24 Sep 2004 14:06:46 +0000]
Fixed POD.
Ken Youens-Clark [Thu, 23 Sep 2004 15:08:03 +0000]
Fixed syntax error.
Brian O'Connor [Wed, 22 Sep 2004 23:46:53 +0000]
Modifications to the Turnkey producer to support file split in the Turnkey install process
Ken Youens-Clark [Mon, 20 Sep 2004 20:48:19 +0000]
OK, I really got it this time.
Ken Youens-Clark [Mon, 20 Sep 2004 20:32:18 +0000]
That last commit wasn't very thought-out.
Ken Youens-Clark [Mon, 20 Sep 2004 20:22:47 +0000]
The default too often was "tinyint," changed to only make it that when
necessary and default non-float number fields to "int."
Ken Youens-Clark [Fri, 17 Sep 2004 21:54:43 +0000]
Trying to be smarter and stricter on translating FKs.
Ken Youens-Clark [Fri, 17 Sep 2004 21:53:35 +0000]
Moved "interval" rule.
Ken Youens-Clark [Fri, 17 Sep 2004 21:52:46 +0000]
Bug fix to keep FK constraints from being created twice, expanded a couple
of rules to handle screwy input.
Jess Robinson [Wed, 15 Sep 2004 21:16:02 +0000]
Add Triggers
Jess Robinson [Wed, 15 Sep 2004 21:13:43 +0000]
New column_info definition, correct nullable
Ken Youens-Clark [Mon, 13 Sep 2004 18:16:48 +0000]
Some updates to tests to skip when required dependencies are missing.
Ken Youens-Clark [Mon, 30 Aug 2004 19:05:32 +0000]
Allow "gutter" to be set by producer arg (Markus Törnqvist).
Ken Youens-Clark [Mon, 30 Aug 2004 19:04:59 +0000]
Allow "gutter" to be set by producer arg (Markus Törnqvis).
Ken Youens-Clark [Mon, 30 Aug 2004 18:59:09 +0000]
Fixed problems in POD.
Ken Youens-Clark [Mon, 30 Aug 2004 18:54:58 +0000]
Applying patches from Markus Törnqvis.
Ken Youens-Clark [Mon, 30 Aug 2004 18:51:00 +0000]
Adding Jess's DB2 DBI parser.
Mark Addison [Fri, 20 Aug 2004 11:01:48 +0000]
Doc tweaks.
Mark Addison [Fri, 20 Aug 2004 00:58:35 +0000]
Doc tweaks
Mark Addison [Thu, 19 Aug 2004 20:58:05 +0000]
Doc tweaks
Mark Addison [Thu, 19 Aug 2004 20:41:32 +0000]
Doc tweaks
Mark Addison [Thu, 19 Aug 2004 19:55:36 +0000]
Doc tweaks
Mark Addison [Thu, 19 Aug 2004 14:09:00 +0000]
Added collection tags for the Schemas objects (tables, views, etc)
Mark Addison [Wed, 18 Aug 2004 20:27:58 +0000]
Move the list of methods to write as elements out into a global.
Darren Chamberlain [Fri, 13 Aug 2004 16:48:07 +0000]
DOAP for SQL::Translator
Mark Addison [Thu, 12 Aug 2004 16:43:23 +0000]
XML test file changed
Ken Youens-Clark [Thu, 12 Aug 2004 16:18:00 +0000]
Added "version" argument to show SQLT::VERSION.
Ken Youens-Clark [Wed, 11 Aug 2004 22:00:39 +0000]
Take the defined field size if present.
Ken Youens-Clark [Wed, 11 Aug 2004 21:55:34 +0000]
Check for >255 field size for all char fields (not just varchar); turn a
boolean field into an ENUM; make sure double/float fields have a precision
value (even if it's just "0").
Ken Youens-Clark [Thu, 5 Aug 2004 21:13:03 +0000]
Add indexes for FKs as necessary.
Ken Youens-Clark [Thu, 5 Aug 2004 18:15:12 +0000]
Make sure there's some size value for a character-based field.
Ken Youens-Clark [Thu, 5 Aug 2004 15:41:46 +0000]
Removed some old code, make table type "InnoDB" if there's a FK constraint.
Brian O'Connor [Thu, 5 Aug 2004 02:05:46 +0000]
Changes to the Turnkey producer to better support IE.
Ken Youens-Clark [Fri, 30 Jul 2004 22:04:25 +0000]
Just some cosmetic changes to the docs.
Ken Youens-Clark [Fri, 30 Jul 2004 21:56:18 +0000]
Removing commented-out code.
Paul Harrington [Fri, 30 Jul 2004 16:13:52 +0000]
sp_columns on Sybase 12.5.2 (and, perhaps, earlier) needs to be passed nulls explicitly so pass in list of undefs to column_info