From: Justin Hunter Date: Tue, 8 Sep 2009 16:03:11 +0000 (-0700) Subject: comments must be add_ed not done in the constructor X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=869bbdf2ffd352125b18ce16bc3e2183ebe19d14;p=dbsrgits%2FSQL-Translator-2.0-ish.git comments must be add_ed not done in the constructor --- diff --git a/lib/SQL/Translator/Parser/DDL/MySQL.pm b/lib/SQL/Translator/Parser/DDL/MySQL.pm index 502a4d7..2ffbeb6 100644 --- a/lib/SQL/Translator/Parser/DDL/MySQL.pm +++ b/lib/SQL/Translator/Parser/DDL/MySQL.pm @@ -63,9 +63,9 @@ role SQL::Translator::Parser::DDL::MySQL { is_auto_increment => $fdata->{is_auto_inc}, is_nullable => $fdata->{null}, is_primary_key => $fdata->{is_primary_key} ? 1 : 0, - comments => $fdata->{comments}, table => $table, }); + $field->comments($fdata->{comments}); $table->add_column($field); $table->primary_key( $field->name ) if $fdata->{'is_primary_key'};