Skip to content

Commit

Permalink
oops...should use actual db name
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohnson-xx committed Jan 10, 2014
1 parent 5327ba8 commit 59d051d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ash/base.rb
Expand Up @@ -484,7 +484,7 @@
ignore_tables = fetch(:ignore_tables, [])
ignore_tables_str = ''

ignore_tables.each{ |t| ignore_tables_str << "--ignore-table='example'.'" + t + "' " }
ignore_tables.each{ |t| ignore_tables_str << "--ignore-table='#{dbname}'.'" + t + "' " }

# dump the database for the proper environment
run "#{mysqldump} #{dump_options} -u #{dbuser} -p #{dbname} #{ignore_tables_str} | gzip -c --best > #{filename}" do |ch, stream, out|
Expand Down
2 changes: 1 addition & 1 deletion lib/ash/magento.rb
Expand Up @@ -244,7 +244,7 @@
ignore_tables = fetch(:ignore_tables, [])
ignore_tables_str = ''

ignore_tables.each{ |t| ignore_tables_str << "--ignore-table='example'.'" + t + "' " }
ignore_tables.each{ |t| ignore_tables_str << "--ignore-table='#{dbname}'.'" + t + "' " }


# dump the database for the proper environment
Expand Down

0 comments on commit 59d051d

Please sign in to comment.