Subject: | When using ignore_ddl option any filters specified in sql_translator_args are not respected |
Ran into an issue where anonymous subs passed to the filters list of the sql_translator_args were not respected when using the DeploymentHandler's ignore_ddl option. The issue seems to derive from
DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm around line 366..in the sub deploy() - an empty hash is passed to _sql_from_yaml() instead of the sqlt_translator_args when ignore_ddl is in play.
Attached is a patch file
Subject: | DBIx_Class_DeploymentHandler_DeployMethod_SQL_Translator.pm |
--- a/lib/perl5/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm
+++ b/lib/perl5/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator.pm
308a309
> my $sqltargs = $self->sql_translator_args;
311c312
< $sql = $self->_sql_from_yaml({},
---
> $sql = $self->_sql_from_yaml($sqltargs,