]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/DB.pm
fix how status is passed to bug_presence
[debbugs.git] / Debbugs / DB.pm
index c16463680d9278a7b7ed24135627bd1799487e07..be8f47afebd394cded6a71e4a14930af4440d4bc 100644 (file)
@@ -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=10;
 
 # 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;