Open the DB using Hydra::Model::DB->new

This gets rid of the openHydraDB function and ensures that we
open the database in a consistent way.

Also drop the PostgreSQL sequence hacks.  They don't seem to be
necessary anymore.
This commit is contained in:
Eelco Dolstra
2012-03-13 12:10:19 +01:00
parent 914c5e248a
commit 179b012a8e
12 changed files with 31 additions and 79 deletions

View File

@ -6,6 +6,7 @@ use File::stat;
use Nix::Store;
use Hydra::Schema;
use Hydra::Helper::Nix;
use Hydra::Model::DB;
use Hydra::Helper::AddBuilds;
use Email::Sender::Simple qw(sendmail);
use Email::Sender::Transport::SMTP;
@ -21,7 +22,7 @@ use feature qw/switch/;
STDOUT->autoflush();
my $db = openHydraDB;
my $db = Hydra::Model::DB->new();
my %config = new Config::General(getHydraConf)->getall;