From: Arthur Axel 'fREW' Schmidt Date: Sat, 27 Feb 2010 10:50:28 +0000 (-0600) Subject: do_backup no longer makes sense; other cleanup X-Git-Tag: v0.001000_01~105 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=189697a77c935fd19474ef8a10886aa0fb90f2c8;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git do_backup no longer makes sense; other cleanup --- diff --git a/lib/DBIx/Class/DeploymentHandler.pm b/lib/DBIx/Class/DeploymentHandler.pm index c22b6ab..db13a93 100644 --- a/lib/DBIx/Class/DeploymentHandler.pm +++ b/lib/DBIx/Class/DeploymentHandler.pm @@ -39,12 +39,6 @@ has backup_directory => ( # configuration predicate => 'has_backup_directory', ); -has do_backup => ( # configuration - isa => 'Bool', - is => 'ro', - default => undef, -); - has version_rs => ( isa => 'DBIx::Class::ResultSet', is => 'ro', diff --git a/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm b/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm index c100265..20f92f7 100644 --- a/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm +++ b/lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm @@ -12,16 +12,12 @@ has deploy_method => ( sub _build_deploy_method { my $self = shift; - my $args = { + DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator->new({ schema => $self->schema, databases => $self->databases, upgrade_directory => $self->upgrade_directory, sqltargs => $self->sqltargs, - do_backup => $self->do_backup, - }; - $args->{backup_directory} = $self->backup_directory - if $self->has_backup_directory; - DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator->new($args); + }); } 1;