X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FTranslator%2FTypes.pm;h=6c950179d83396d1c074de670a5caa68ff703f1c;hb=035b85031c5d6fdce4b2ea18c243707b84b0d869;hp=b21afd97ed741e1b6997815e987efc50ae49ffd0;hpb=5910913172b1bde9356732f2c728a05122a282cb;p=dbsrgits%2FSQL-Translator-2.0-ish.git 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,