X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FHandlesVersioning.pm;h=87a4286a6ab38ff4acb874d643e6c760360e9b93;hb=HEAD;hp=77895d5db0d87bd0be3a0b2dc9355af90e21ab93;hpb=f1d1462a0fd0e01304443c9fc3b6023ad47f1ab4;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git diff --git a/lib/DBIx/Class/DeploymentHandler/HandlesVersioning.pm b/lib/DBIx/Class/DeploymentHandler/HandlesVersioning.pm index 77895d5..87a4286 100644 --- a/lib/DBIx/Class/DeploymentHandler/HandlesVersioning.pm +++ b/lib/DBIx/Class/DeploymentHandler/HandlesVersioning.pm @@ -1,7 +1,9 @@ package DBIx::Class::DeploymentHandler::HandlesVersioning; + use Moose::Role; -# note: the sets returned need to match! +# ABSTRACT: Interface for version methods + requires 'next_version_set'; requires 'previous_version_set'; @@ -66,15 +68,15 @@ the L iterator to yeild the following: db_version = 5, to_version=1 - [4, 5] - [3, 4] - [2, 3] - [1, 2] + [5, 4] + [4, 3] + [3, 2] + [2, 1] undef or maybe just - [1, 5] + [5, 1] undef Note that we do not swap the version number order. This allows us to remain