diff --git a/symmetric-client/src/main/java/org/jumpmind/symmetric/DbCompareCommand.java b/symmetric-client/src/main/java/org/jumpmind/symmetric/DbCompareCommand.java index 915e1e5a44..807130c6ae 100644 --- a/symmetric-client/src/main/java/org/jumpmind/symmetric/DbCompareCommand.java +++ b/symmetric-client/src/main/java/org/jumpmind/symmetric/DbCompareCommand.java @@ -21,23 +21,15 @@ package org.jumpmind.symmetric; import java.io.File; -import java.io.FileOutputStream; import java.util.Arrays; -import java.util.Map; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.Options; import org.apache.commons.cli.ParseException; import org.apache.commons.collections.CollectionUtils; -import org.apache.commons.lang.ArrayUtils; import org.apache.commons.lang.StringUtils; -import org.jumpmind.db.model.Table; -import org.jumpmind.symmetric.common.ParameterConstants; import org.jumpmind.symmetric.io.DbCompare; import org.jumpmind.symmetric.io.DbCompareReport; -import org.jumpmind.symmetric.io.DbCompareReport.TableReport; -import org.jumpmind.symmetric.io.data.DbFill; -import org.jumpmind.symmetric.service.IParameterService; public class DbCompareCommand extends AbstractCommandLauncher { @@ -148,7 +140,7 @@ protected void buildOptions(Options options) { addOption(options, "s", OPTION_SOURCE, true); addOption(options, "t", OPTION_TARGET, true); addOption(options, null, OPTION_EXCLUDE, true); - addOption(options, null, OPTION_USE_SYM_CONFIG, false); + addOption(options, null, OPTION_USE_SYM_CONFIG, true); addOption(options, null, OPTION_OUTPUT_SQL, true); addOption(options, null, OPTION_NUMERIC_SCALE, true); } diff --git a/symmetric-client/src/main/resources/symmetric-messages.properties b/symmetric-client/src/main/resources/symmetric-messages.properties index f913ecb640..d3e16f2557 100644 --- a/symmetric-client/src/main/resources/symmetric-messages.properties +++ b/symmetric-client/src/main/resources/symmetric-messages.properties @@ -174,8 +174,8 @@ DbCompare.Option.exclude=A comma-separated list of table names to exclude from c DbCompare.Option.output=A file name to output delta SQL (insert/update/delete statements) that would bring the target into sync with the source. You can use the %t pattern to use the table name as part of the file and generate a file per table. (E.g. /output/%t.diff.sql) DbCompare.Option.source=The source database engine properties file for comparison. DbCompare.Option.target=The target database engine properties file for comparison. -DbCompare.Option.use-sym-config=true|false. If true, sym_trigger, sym_transform, etc. will be consulted to build up the datamodel to compare. -DbCompare.Option.numeric-scale=When comparing decimals, how many decimal places to consider while doing the comparison. Remaining digits will be rounded. +DbCompare.Option.use-sym-config=true|false. If true, sym_trigger, sym_transform, etc. will be consulted to build up the datamodel to compare. Default is true. +DbCompare.Option.numeric-scale=When comparing decimals, how many decimal places to consider while doing the comparison. Remaining digits will be rounded. Default is 3. DbCompare.Option.output-sql=An output file for SQL statements that if executed on the target, should bring it into sync with the source.