From: Arthur Axel 'fREW' Schmidt Date: Sat, 20 Mar 2010 17:12:17 +0000 (-0500) Subject: get rid of some more dead code X-Git-Tag: v0.001000_01~81 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3aaf766fb64abe220ceaf0b39a93dc2eb925d143;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git get rid of some more dead code --- diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm index 4b6c9f5..17ff95d 100644 --- a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm @@ -187,22 +187,16 @@ sub prepare_install { my $sqltargs = $self->sqltargs; my $version = $schema->schema_version; - unless( -d $dir ) { - carp "Upgrade directory $dir does not exist, using ./\n"; - $dir = './'; - } - - my $sqlt = SQL::Translator->new({ add_drop_table => 1, ignore_constraint_names => 1, ignore_index_names => 1, parser => 'SQL::Translator::Parser::DBIx::Class', - %{$sqltargs || {}} + %{$sqltargs} }); my $sqlt_schema = $sqlt->translate({ data => $schema }) - or $self->throw_exception ($sqlt->error); + or $self->throw_exception($sqlt->error); foreach my $db (@$databases) { $sqlt->reset;