X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FDB.pm;h=4e6d3cba7477fdf20cef72ae7f4d45796338cc9b;hb=f03be04b8dc5de823a2535992889c13182b4c516;hp=c16463680d9278a7b7ed24135627bd1799487e07;hpb=3b284fbd38405e7ad61cfb2f7d80aefc7bacddf2;p=debbugs.git diff --git a/Debbugs/DB.pm b/Debbugs/DB.pm index c164636..4e6d3cb 100644 --- a/Debbugs/DB.pm +++ b/Debbugs/DB.pm @@ -17,7 +17,17 @@ __PACKAGE__->load_namespaces; # This version must be incremented any time the schema changes so that # DBIx::Class::DeploymentHandler can do its work -our $VERSION=2; +our $VERSION=8; # You can replace this text with custom code or comments, and it will be preserved on regeneration + +# override connect to handle just passing a bare service +sub connect { + my ($self,@rem) = @_; + if ($rem[0] !~ /:/) { + $rem[0] = 'dbi:Pg:service='.$rem[0]; + } + $self->clone->connection(@rem); +} + 1;