let you install to a given point in the version history
John Napiorkowski [Tue, 27 Dec 2011 15:45:26 +0000 (10:45 -0500)]
Changes
lib/DBIx/Class/DeploymentHandler/Dad.pm

diff --git a/Changes b/Changes
index ad13a3e..3cd404f 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
 Revision history for {{$dist->name}}
 
 {{$NEXT}}
+       - Fix install to allow you to deploy to a given version (jnap)
        - Fix the backup method to use storage, not schema (jnap)
        - Fix the reasonable defaults for downgrading (jnap)
        - Stop warning all the time (ribasushi)
index db9eaec..af14267 100644 (file)
@@ -46,7 +46,7 @@ sub install {
   croak 'Install not possible as versions table already exists in database'
     if $self->version_storage_is_installed;
 
-  my $ddl = $self->deploy;
+  my $ddl = $self->deploy({version=>$self->to_version});
 
   $self->add_database_version({
     version     => $self->to_version,