set the table on the column
Justin Hunter [Tue, 21 Jun 2011 18:27:04 +0000 (11:27 -0700)]
lib/SQL/Translator/Object/Constraint.pm

index 81da9e7..9fcc016 100644 (file)
@@ -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);
     }