Skip to content

Commit

Permalink
Fix passing of producer args from SQL::Translator::Diff. (#117)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
racke committed Jul 8, 2022
1 parent 0ab2e01 commit ccbb34c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/SQL/Translator/Diff.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ccbb34c

Please sign in to comment.