bin/ridgepole in ridgepole-0.6.0.beta2 vs bin/ridgepole in ridgepole-0.6.0.beta3

- old
+ new

@@ -64,26 +64,25 @@ opt.on('', '--table-options OPTIONS') {|v| options[:table_options] = v } opt.on('', '--bulk-change') { raise "Cannot use `bulk-change` in `merge`" if options[:merge] options[:bulk_change] = true } - - Ridgepole::DEFAULTS_LIMITS.keys.each do |column_type| - case column_type - when :integer - option_column_type = :int - when :boolean - option_column_type = :bool - else - option_column_type = column_type - end - - opt.on('', "--default-#{option_column_type}-limit LIMIT", Integer) {|v| - options[:"default_#{column_type}_limit"] = v - } - end - + opt.on('', "--default-bool-limit LIMIT", Integer) {|v| + options[:default_boolean_limit] = v + } + opt.on('', "--default-int-limit LIMIT", Integer) {|v| + options[:"default_integer_limit"] = v + } + opt.on('', "--default-float-limit LIMIT", Integer) {|v| + options[:"default_float_limit"] = v + } + opt.on('', "--default-string-limit LIMIT", Integer) {|v| + options[:"default_string_limit"] = v + } + opt.on('', "--default-text-limit LIMIT", Integer) {|v| + options[:"default_text_limit"] = v + } opt.on('', '--pre-query QUERY') {|v| options[:pre_query] = v } opt.on('', '--post-query QUERY') {|v| options[:post_query] = v } opt.on('-e', '--export') { set_mode[:export] } opt.on('', '--split') {|v| split = true } opt.on('', '--split-with-dir') {|v| split = :with_dir } @@ -105,9 +104,10 @@ opt.on('-t', '--tables TABLES', Array) {|v| options[:tables] = v } opt.on('', '--ignore-tables TABLES', Array) {|v| options[:ignore_tables] = v.map {|i| Regexp.new(i) } } opt.on('', '--enable-mysql-awesome') { options[:enable_mysql_awesome] = true } opt.on('', '--mysql-awesome-unsigned-pk') { options[:mysql_awesome_unsigned_pk] = true } opt.on('', '--dump-without-table-options') { options[:dump_without_table_options] = true } + opt.on('', '--index-removed-drop-column') { options[:index_removed_drop_column] = true } opt.on('-r' , '--require LIBS', Array) {|v| v.each {|i| require i } } opt.on('' , '--log-file LOG_FILE') {|v| options[:log_file] = v } opt.on('' , '--verbose') { Ridgepole::Logger.verbose = true } opt.on('' , '--debug') { options[:debug] = true }