From: Justin Hunter Date: Tue, 27 Jul 2010 03:40:39 +0000 (-0700) Subject: fix minor erorr X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a4fda2d8e132d00cc7491d9122097dd3f267fd19;p=dbsrgits%2FSQL-Translator-2.0-ish.git fix minor erorr --- diff --git a/lib/SQL/Translator/Producer/YAML.pm b/lib/SQL/Translator/Producer/YAML.pm index 8df0fe9..9ea22b6 100644 --- a/lib/SQL/Translator/Producer/YAML.pm +++ b/lib/SQL/Translator/Producer/YAML.pm @@ -32,14 +32,13 @@ role SQL::Translator::Producer::YAML { method _create_table(Table $table) { return { - 'name' => scalar $table->name, + 'name' => $table->name, 'options' => $table->options || [], $table->comments ? ('comments' => $table->comments ) : (), 'constraints' => [ map { $self->_create_constraint($_) } $table->get_constraints ], 'indices' => [ map { $self->_create_index($_) } $table->get_indices ], - 'fields' => { map { ($_->name => $self->_create_field($_)) } $table->get_fields, + 'fields' => { map { ($_->name => $self->_create_field($_)) } $table->get_fields, }, 'order' => $table->order, - }, keys %{$table->extra} ? ('extra' => { $table->extra } ) : (), }; }