Skip to content

Commit

Permalink
Added database name to --ignore-table statements for MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
km_digitalpatrioten committed Oct 28, 2015
1 parent aa58c21 commit 9e8e760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano-db-tasks/database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def dump_cmd_opts
def dump_cmd_ignore_tables_opts
ignore_tables = @cap.fetch(:db_ignore_tables, [])
if mysql?
ignore_tables.map{ |t| "--ignore-table=#{t}" }.join(" ")
ignore_tables.map{ |t| "--ignore-table=#{database}.#{t}" }.join(" ")
elsif postgresql?
ignore_tables.map{ |t| "--exclude-table=#{t}" }.join(" ")
end
Expand Down

0 comments on commit 9e8e760

Please sign in to comment.