remove unneeded { }
Justin Hunter [Tue, 21 Jun 2011 18:31:07 +0000 (11:31 -0700)]
lib/SQL/Translator/Object/Table.pm

index 1389933..3ba3d60 100644 (file)
@@ -165,7 +165,7 @@ class SQL::Translator::Object::Table extends SQL::Translator::Object is dirty {
 
         my $primary_key = $self->primary_key;
         unless (defined $primary_key) {
-            $primary_key = SQL::Translator::Object::Constraint->new({ type => 'PRIMARY KEY' });
+            $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);