Permalink
Browse files

add skip schema migration

  • Loading branch information...
goodwill authored and ricardochimal committed Dec 7, 2010
1 parent c7debaa commit d29c43f8031fcd9b56fa766e41ad4397f329e961
Showing with 4 additions and 3 deletions.
  1. +2 −1 lib/taps/cli.rb
  2. +2 −2 lib/taps/operation.rb
View
@@ -137,7 +137,8 @@ def clientoptparse(cmd)
r_tables = v.collect { |t| "^#{t}$" }.join("|")
opts[:table_filter] = "(#{r_tables})"
end
o.on("-e", "--exclude_tables=A,B,C", Array, "Shortcut to exclude a list of tables") {|v| opts[:exclude_tables] = v}
o.on("-e", "--exclude_tables=A,B,C", Array, "Shortcut to exclude a list of tables") { |v| opts[:exclude_tables] = v }
o.on("-s", "--skip-schema", "Skip schema migration") { |v| opts[:skip_schema] = true }
o.on("-d", "--debug", "Enable Debug Messages") { |v| opts[:debug] = true }
o.parse!(argv)
View
@@ -241,7 +241,7 @@ def to_hash
def run
catch_errors do
unless resuming?
pull_schema
pull_schema unless opts[:skip_schema]
pull_indexes if indexes_first?
end
setup_signal_trap
@@ -400,7 +400,7 @@ def to_hash
def run
catch_errors do
unless resuming?
push_schema
push_schema unless opts[:skip_schema]
push_indexes if indexes_first?
end
setup_signal_trap

0 comments on commit d29c43f

Please sign in to comment.