Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db_ignore_data_tables setting doesn't work on MySQL #136

Open
janko opened this issue Feb 20, 2023 · 0 comments
Open

db_ignore_data_tables setting doesn't work on MySQL #136

janko opened this issue Feb 20, 2023 · 0 comments

Comments

@janko
Copy link

janko commented Feb 20, 2023

The method that's supposed to translate this Capistrano setting into a CLI argument just returns nil for non-Postgres database 🤷🏻‍♂️

def dump_cmd_ignore_data_tables_opts
ignore_tables = @cap.fetch(:db_ignore_data_tables, [])
ignore_tables.map { |t| "--exclude-table-data=#{t}" }.join(" ") if postgresql?
end

I suppose it's because mysqldump doesn't support this option natively. However, since the Capistrano output is truncated, it's difficult to figure out the option was not applied, so it would be better to notify the developer the option was ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant