projects
/
dbsrgits/SQL-Translator-2.0-ish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
8e1b1e1
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Object/Constraint.pm
b/lib/SQL/Translator/Object/Constraint.pm
index
81da9e7
..
9fcc016
100644
(file)
--- 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);
}