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:
@ -3,11 +3,12 @@
|
||||
use strict;
|
||||
use Hydra::Schema;
|
||||
use Hydra::Helper::Nix;
|
||||
use Hydra::Model::DB;
|
||||
use File::Slurp;
|
||||
use SQL::SplitStatement;
|
||||
use List::Util qw(max);
|
||||
|
||||
my $db = openHydraDB;
|
||||
my $db = Hydra::Model::DB->new();
|
||||
my $dbh = $db->storage->dbh;
|
||||
$dbh->{RaiseError} = 1;
|
||||
|
||||
|
Reference in New Issue
Block a user