From: John Napiorkowski Date: Thu, 22 Sep 2011 03:16:24 +0000 (-0400) Subject: have backup called correctly X-Git-Tag: v0.001006~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cd09d23352318522ec8a8db7522bc4109ee6f583;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git have backup called correctly --- diff --git a/Changes b/Changes index 8131408..ad13a3e 100644 --- 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 diff --git a/lib/DBIx/Class/DeploymentHandler/Dad.pm b/lib/DBIx/Class/DeploymentHandler/Dad.pm index 6c92ab2..db9eaec 100644 --- a/lib/DBIx/Class/DeploymentHandler/Dad.pm +++ b/lib/DBIx/Class/DeploymentHandler/Dad.pm @@ -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;