From: Justin Hunter Date: Tue, 21 Jun 2011 18:27:04 +0000 (-0700) Subject: set the table on the column X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1dfb508c6ecabc2fdb66dd682b108598050576ae;p=dbsrgits%2FSQL-Translator-2.0-ish.git set the table on the column --- diff --git a/lib/SQL/Translator/Object/Constraint.pm b/lib/SQL/Translator/Object/Constraint.pm index 81da9e7..9fcc016 100644 --- a/lib/SQL/Translator/Object/Constraint.pm +++ b/lib/SQL/Translator/Object/Constraint.pm @@ -89,6 +89,7 @@ class SQL::Translator::Object::Constraint extends SQL::Translator::Object { if ($self->has_type && $self->type eq 'PRIMARY KEY') { $column->is_primary_key(1); } + $column->table($self->table); $self->$orig($column->name, $column); return $self->get_column($column->name); }