From: Justin Hunter Date: Tue, 21 Jun 2011 18:30:35 +0000 (-0700) Subject: apparenlty add_column(coerce ...) works now X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8ef847e2bcf3bb2195967e92a1560662344089df;p=dbsrgits%2FSQL-Translator-2.0-ish.git apparenlty add_column(coerce ...) works now --- diff --git a/lib/SQL/Translator/Object/Table.pm b/lib/SQL/Translator/Object/Table.pm index 0ce2861..dd9e17a 100644 --- a/lib/SQL/Translator/Object/Table.pm +++ b/lib/SQL/Translator/Object/Table.pm @@ -168,7 +168,7 @@ class SQL::Translator::Object::Table extends SQL::Translator::Object is dirty { $primary_key = SQL::Translator::Object::Constraint->new({ type => 'PRIMARY KEY' }); $self->add_constraint($primary_key); } - $primary_key->add_field({ name => $column }) unless $primary_key->exists_column($column); ## FIX ME, change back to add_column once around add_column(coerce .. ) works + $primary_key->add_column( name => $column ) unless $primary_key->exists_column($column); return $primary_key; }