Skip to content

Commit 6f87602

Browse files
committed
Merge pull request #76 from km-digitalpatrioten/master
Added database name to --ignore-table statements for MySQL
2 parents aa58c21 + 9e8e760 commit 6f87602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/capistrano-db-tasks/database.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def dump_cmd_opts
8888
def dump_cmd_ignore_tables_opts
8989
ignore_tables = @cap.fetch(:db_ignore_tables, [])
9090
if mysql?
91-
ignore_tables.map{ |t| "--ignore-table=#{t}" }.join(" ")
91+
ignore_tables.map{ |t| "--ignore-table=#{database}.#{t}" }.join(" ")
9292
elsif postgresql?
9393
ignore_tables.map{ |t| "--exclude-table=#{t}" }.join(" ")
9494
end

0 commit comments

Comments
 (0)