X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FVersionStorage%2FStandard.pm;h=b1af275b395a1f8a6b424886979ad5b611205886;hb=refs%2Fheads%2Fmoo-port;hp=a428534eb968962ef40b76e083a6b282dc1d3f05;hpb=fe048ee301e219d737307f2b30e3bd88a7128df6;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm index a428534..b1af275 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm @@ -1,10 +1,7 @@ package DBIx::Class::DeploymentHandler::VersionStorage::Standard; -use Moose; -use DBIx::Class::DeploymentHandler::Logger; -use Log::Contextual ':log', -package_logger => - DBIx::Class::DeploymentHandler::Logger->new({ - env_prefix => 'DBICDH' - }); +use Moo; +use DBIx::Class::DeploymentHandler::LogImporter ':log'; +use DBIx::Class::DeploymentHandler::Types 'ResultSet'; # ABSTRACT: Version storage that does the normal stuff @@ -16,7 +13,7 @@ has schema => ( ); has version_rs => ( - isa => 'DBIx::Class::ResultSet', + isa => ResultSet, is => 'ro', builder => '_build_version_rs', handles => [qw( database_version version_storage_is_installed )], @@ -44,8 +41,6 @@ sub delete_database_version { $_[0]->version_rs->search({ version => $version})->delete } -__PACKAGE__->meta->make_immutable; - 1; # vim: ts=2 sw=2 expandtab