Skip to content

Commit

Permalink
bug: ignore_tables using destination instead of source
Browse files Browse the repository at this point in the history
  • Loading branch information
seanhuber committed May 30, 2016
1 parent 645b705 commit f2a3cd7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added db-clone-1.0.2.gem
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/db-clone/cmd_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def build_mysql_cmd( src_dest )
"--port=#{src_dest[:src]['port']}"
]

DbClone.config[:ignore_tables].each{|tbl| mysqldump_args << "--ignore-table=#{src_dest[:dest]['database']}.#{tbl}"} if DbClone.config && DbClone.config[:ignore_tables].is_a?(Array)
DbClone.config[:ignore_tables].each{|tbl| mysqldump_args << "--ignore-table=#{src_dest[:src]['database']}.#{tbl}"} if DbClone.config && DbClone.config[:ignore_tables].is_a?(Array)

(mysqldump_args + [
"#{src_dest[:src]['database']}",
Expand Down
2 changes: 1 addition & 1 deletion lib/db-clone/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module DbClone
VERSION = '1.0.1'
VERSION = '1.0.2'
end

0 comments on commit f2a3cd7

Please sign in to comment.