X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-DeploymentHandler.git;a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FVersionStorage%2FStandard.pm;h=2e699ba9ff0300160e8ea40b9ae4e4c470913405;hp=bfc4307a985ee7e2adf07ee04c30e8f6c64d15c5;hb=97aa9a748e07c9e5875d56bd7d6554e481911c5d;hpb=8465e76797613fa0b9c85365c03d26cacbaab31a diff --git a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm index bfc4307..2e699ba 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm @@ -1,18 +1,13 @@ package DBIx::Class::DeploymentHandler::VersionStorage::Standard; + use Moose; -use DBIx::Class::DeploymentHandler::Logger; -use Log::Contextual ':log', -default_logger => - DBIx::Class::DeploymentHandler::Logger->new({ - env_prefix => 'DBICDH' - }); +use DBIx::Class::DeploymentHandler::LogImporter ':log'; # ABSTRACT: Version storage that does the normal stuff -use Method::Signatures::Simple; use DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResult; has schema => ( - isa => 'DBIx::Class::Schema', is => 'ro', required => 1, ); @@ -36,13 +31,13 @@ sub _build_version_rs { sub add_database_version { my $version = $_[1]->{version}; - log_debug { "[DBICDH] Adding database version $version" }; + log_debug { "Adding database version $version" }; $_[0]->version_rs->create($_[1]) } sub delete_database_version { my $version = $_[1]->{version}; - log_debug { "[DBICDH] Deleting database version $version" }; + log_debug { "Deleting database version $version" }; $_[0]->version_rs->search({ version => $version})->delete } @@ -54,3 +49,8 @@ __PACKAGE__->meta->make_immutable; __END__ +=head1 SEE ALSO + +This class is an implementation of +L. Pretty much all the +documentation is there.