From: Douglas Early Date: Fri, 31 Jan 2014 14:42:45 +0000 (-0600) Subject: Ensure that sqltargs are passed to deploy when ignore_ddl is set X-Git-Tag: v0.002210~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b6bd39e5d75c994c09f3d0ae0661c572e1c71f05;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git Ensure that sqltargs are passed to deploy when ignore_ddl is set --- diff --git a/Changes b/Changes index 176c48e..f0c2b37 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for {{$dist->name}} {{$NEXT}} + - Ensure that sqltargs are passed to deploy when ignore_ddl is set + (fixes RT#92373) - Correctly strip lines that are all whitespace (fixes RT#92582) - Ditch RT diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm index 9e2a759..0b00dba 100644 --- a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm @@ -360,8 +360,9 @@ sub deploy { log_info { "deploying version $version" }; my $sqlt_type = $self->storage->sqlt_type; my $sql; + my $sqltargs = $self->sql_translator_args; if ($self->ignore_ddl) { - $sql = $self->_sql_from_yaml({}, + $sql = $self->_sql_from_yaml($sqltargs, '_ddl_protoschema_deploy_consume_filenames', $sqlt_type ); }