X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FDeploymentHandler%2FWithSqltDeployMethod.pm;fp=lib%2FDBIx%2FClass%2FDeploymentHandler%2FWithSqltDeployMethod.pm;h=20f92f719da73c179f79fa4580a2a1ae051aa6d3;hb=189697a77c935fd19474ef8a10886aa0fb90f2c8;hp=c1002651301b823a39a8af9aefd6b9948c4b2e9b;hpb=e217d19c58c8beba917e751dd1089281fa1a74ee;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git 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;