do_backup no longer makes sense; other cleanup
Arthur Axel 'fREW' Schmidt [Sat, 27 Feb 2010 10:50:28 +0000 (04:50 -0600)]
lib/DBIx/Class/DeploymentHandler.pm
lib/DBIx/Class/DeploymentHandler/WithSqltDeployMethod.pm

index c22b6ab..db13a93 100644 (file)
@@ -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',
index c100265..20f92f7 100644 (file)
@@ -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;