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);