have backup called correctly
John Napiorkowski [Thu, 22 Sep 2011 03:16:24 +0000 (23:16 -0400)]
Changes
lib/DBIx/Class/DeploymentHandler/Dad.pm

diff --git a/Changes b/Changes
index 8131408..ad13a3e 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,6 +1,7 @@
 Revision history for {{$dist->name}}
 
 {{$NEXT}}
+       - Fix the backup method to use storage, not schema (jnap)
        - Fix the reasonable defaults for downgrading (jnap)
        - Stop warning all the time (ribasushi)
        - croak on a couple errors that should be fatal
index 6c92ab2..db9eaec 100644 (file)
@@ -91,7 +91,7 @@ sub downgrade {
 sub backup {
   my $self = shift;
   log_info { 'backing up' };
-  $self->storage->backup($self->backup_directory)
+  $self->schema->storage->backup($self->backup_directory)
 }
 
 __PACKAGE__->meta->make_immutable;