summaryrefslogtreecommitdiff
path: root/perl/t/admin.t
diff options
context:
space:
mode:
authorJon Robertson <jonrober@stanford.edu>2013-01-31 16:27:49 -0800
committerRuss Allbery <rra@stanford.edu>2013-01-31 16:35:01 -0800
commitbf18b39b6afe541e6888d32d6a555643cbe9d22e (patch)
tree9d224736f0a6f6b803a749938e631bd262be0c26 /perl/t/admin.t
parenta30984dc9602e5a7efe9556f337eb21dbcec8319 (diff)
Renamed dbh subroutines and variables for clarity
In moving from DBI to DBIx::Class, we at first left the various variables the same. This goes through to update them for the proper names. * Wallet::Admin::schema was created to return the schema object (and similarly for Wallet::Server and Wallet::Report). * Wallet::Admin::dbh was modified to return the actual DBI handle again (and similarly for Wallet::Server and Wallet::Report). * Various places that used $admin->{dbh} were moved to $admin->{schema}. * Various places using $dbh for the schema object were changed to $schema. Change-Id: I00914866e9a8250855a7828474aa9ce0f37b914f Reviewed-on: https://gerrit.stanford.edu/733 Reviewed-by: Russ Allbery <rra@stanford.edu> Tested-by: Russ Allbery <rra@stanford.edu>
Diffstat (limited to 'perl/t/admin.t')
-rwxr-xr-xperl/t/admin.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl/t/admin.t b/perl/t/admin.t
index cf6a637..ff69ee9 100755
--- a/perl/t/admin.t
+++ b/perl/t/admin.t
@@ -63,11 +63,11 @@ $Wallet::Schema::VERSION = '0.07';
is ($admin->reinitialize ('admin@EXAMPLE.COM'), 1,
' and re-initialization succeeds');
$Wallet::Schema::VERSION = '0.08';
-my $schema = $admin->dbh;
+my $schema = $admin->schema;
$schema->upgrade_directory ('sql/');
my $retval = $admin->upgrade;
is ($retval, 1, 'Performing an upgrade succeeds');
-my $dbh = $schema->storage->dbh;
+my $dbh = $admin->dbh;
my $sql = "select version from dbix_class_schema_versions order by version "
."DESC";
$version = $dbh->selectall_arrayref ($sql);