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%2FVersionHandler%2FExplicitVersions.pm;h=4a4a98522c79f5ae66e93a528116d3e1c14d1295;hp=2661cac358dbf47c9d2882ecce69bd783b861cde;hb=97aa9a748e07c9e5875d56bd7d6554e481911c5d;hpb=9deabd1fcf64a04422d1903f8656ac445e73336a diff --git a/lib/DBIx/Class/DeploymentHandler/VersionHandler/ExplicitVersions.pm b/lib/DBIx/Class/DeploymentHandler/VersionHandler/ExplicitVersions.pm index 2661cac..4a4a985 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionHandler/ExplicitVersions.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionHandler/ExplicitVersions.pm @@ -1,4 +1,5 @@ package DBIx::Class::DeploymentHandler::VersionHandler::ExplicitVersions; + use Moose; # ABSTRACT: Define your own list of versions to use for migrations @@ -21,6 +22,7 @@ has database_version => ( has to_version => ( is => 'ro', + isa => 'Str', lazy_build => 1, ); @@ -93,8 +95,8 @@ sub previous_version_set { } else { my $next_idx = $self->_dec_version_idx; return [ - $self->ordered_versions->[$next_idx ], $self->ordered_versions->[$next_idx + 1], + $self->ordered_versions->[$next_idx ], ]; } } @@ -107,3 +109,8 @@ __PACKAGE__->meta->make_immutable; __END__ +=head1 SEE ALSO + +This class is an implementation of +L. Pretty much all the +documentation is there.