fix ExplicitVersions to downgrade in a sensible order
Arthur Axel 'fREW' Schmidt [Sat, 8 May 2010 18:49:25 +0000 (13:49 -0500)]
lib/DBIx/Class/DeploymentHandler/VersionHandler/ExplicitVersions.pm

index 2661cac..0781c43 100644 (file)
@@ -93,8 +93,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    ],
     ];
   }
 }