Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlt-diff: Add option --mysql-version= #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion script/sqlt-diff
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Options:
--ignore-constraint-names Ignore constraint name differences
--mysql_parser_version=<#####> Specify a target MySQL parser version
for dealing with /*! comments
--mysql-version=<#####> Specify a target MySQL producer version
--output-db=<Producer> This Producer will be used instead of one
corresponding to parser1 to format output
for new tables
Expand Down Expand Up @@ -118,7 +119,8 @@ $VERSION = '1.60';

my ( @input, $list, $help, $debug, $trace, $caseopt, $ignore_index_names,
$ignore_constraint_names, $output_db, $mysql_parser_version,
$ignore_view_sql, $ignore_proc_sql, $no_batch_alters, $quote
$mysql_version, $ignore_view_sql, $ignore_proc_sql, $no_batch_alters,
$quote
);

GetOptions(
Expand All @@ -130,6 +132,7 @@ GetOptions(
'ignore-index-names' => \$ignore_index_names,
'ignore-constraint-names' => \$ignore_constraint_names,
'mysql_parser_version:s' => \$mysql_parser_version,
'mysql-version=s' => \$mysql_version,
'output-db:s' => \$output_db,
'ignore-view-sql' => \$ignore_view_sql,
'ignore-proc-sql' => \$ignore_proc_sql,
Expand Down Expand Up @@ -195,6 +198,7 @@ my $result = SQL::Translator::Diff::schema_diff(
producer_args => {
quote_table_names => $quote || '',
quote_field_names => $quote || '',
mysql_version => $mysql_version,
},
}
);
Expand Down