From: Justin Hunter Date: Thu, 24 Sep 2009 16:58:45 +0000 (-0700) Subject: add coercion for Index X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e977620830dae9c84a00b658d3984a2f9f0932ab;p=dbsrgits%2FSQL-Translator-2.0-ish.git add coercion for Index --- diff --git a/lib/SQL/Translator/Types.pm b/lib/SQL/Translator/Types.pm index b21afd9..6c95017 100644 --- a/lib/SQL/Translator/Types.pm +++ b/lib/SQL/Translator/Types.pm @@ -20,8 +20,8 @@ class SQL::Translator::Types { class_type Producer, { class => 'SQL::Translator::Producer' }; class_type Translator, { class => 'SQL::Translator' }; - coerce Column, - from HashRef, via { SQL::Translator::Object::Column->new($_) }; + coerce Column, from HashRef, via { SQL::Translator::Object::Column->new($_) }; + coerce Index, from HashRef, via { SQL::Translator::Object::Index->new($_) }; subtype Bit, as Int, where { $_ == 1 || $_ == 0 }; coerce Bit,