From 80fd8eb0baf133aecf8e3fd7746607f67ca3281a Mon Sep 17 00:00:00 2001 From: "Stefan Hornburg (Racke)" Date: Mon, 25 Mar 2019 14:53:32 +0100 Subject: [PATCH] Fix passing of producer args from SQL::Translator::Diff. Otherwise the producer args are present for changed fields, but not for created tables. So changing the questionable default for the MySQL version in the MySQL producer results in a different SQL types depending if the field is a new or an existing table. --- lib/SQL/Translator/Diff.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/SQL/Translator/Diff.pm b/lib/SQL/Translator/Diff.pm index 4218fc3e9..fd34247d2 100644 --- a/lib/SQL/Translator/Diff.pm +++ b/lib/SQL/Translator/Diff.pm @@ -272,8 +272,7 @@ sub produce_diff_sql { producer_type => $self->output_db, add_drop_table => 0, no_comments => 1, - # TODO: sort out options - %{ $self->producer_args } + producer_args => $self->producer_args, ); $translator->producer_args->{no_transaction} = 1; my $schema = $translator->schema;