projects
/
dbsrgits/SQL-Translator-2.0-ish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
92f89ed
)
coerce a hash into an Index
Justin Hunter [Tue, 29 Sep 2009 23:54:34 +0000 (16:54 -0700)]
lib/SQL/Translator/Object/Table.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Object/Table.pm
b/lib/SQL/Translator/Object/Table.pm
index
918cd14
..
08388a5
100644
(file)
--- a/
lib/SQL/Translator/Object/Table.pm
+++ b/
lib/SQL/Translator/Object/Table.pm
@@
-107,7
+107,7
@@
class SQL::Translator::Object::Table extends SQL::Translator::Object is dirty {
}
$self->$orig($name, $constraint)
}
- around add_index(Index $index) {
+ around add_index(Index $index does coerce) {
my $name = $index->name;
if ($name eq '') {
my $idx = 0;