]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/DB.pm
allow specifying the dist in source_to_binary (for DB actions)
[debbugs.git] / Debbugs / DB.pm
index f44e18500e4ece376a9a52322d6fe1907fd663b6..6941a5f3a96564b189f796e2db2b26c23e1a1754 100644 (file)
@@ -15,6 +15,19 @@ __PACKAGE__->load_namespaces;
 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-07-17 10:25:29
 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wiMg1t5hFUhnyufL3yT5fQ
 
+# This version must be incremented any time the schema changes so that
+# DBIx::Class::DeploymentHandler can do its work
+our $VERSION=11;
 
 # 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;