Ensure that sqltargs are passed to deploy when ignore_ddl is set
Douglas Early [Fri, 31 Jan 2014 14:42:45 +0000 (08:42 -0600)]
Changes
lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm

diff --git a/Changes b/Changes
index 176c48e..f0c2b37 100644 (file)
--- 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
 
index 9e2a759..0b00dba 100644 (file)
@@ -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
      );
   }