ok, so I do need to pass in a HashRef
Justin Hunter [Mon, 27 Jun 2011 04:09:59 +0000 (00:09 -0400)]
lib/SQL/Translator/Object/Table.pm

index 3ba3d60..7506978 100644 (file)
@@ -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_column( name => $column ) unless $primary_key->exists_column($column);
+        $primary_key->add_column({ name => $column }) unless $primary_key->exists_column($column);
         return $primary_key;
     }