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

Restrict compare by type #230

Open
dhrapson opened this issue Jul 17, 2023 · 0 comments
Open

Restrict compare by type #230

dhrapson opened this issue Jul 17, 2023 · 0 comments

Comments

@dhrapson
Copy link

Hi,
We like the migra tool and use it for comparing our postgres databases.
There are some scenarios where we want to avoid comparing specific types of things (e.g. if a rollback has occurred there may be additional functions, views, triggers left in place).
I was hoping you might consider supporting the inclusion/exclusion of specific object types, similar to how we are able to include/exclude the comparison of privileges.
One way would be by:

  • adding a --includeObjects parameter (or similar) that we could provide a list of those object types we want to include
  • defaulting the list to all object types

Or by having a separate list of CLI option per type if you would prefer.
Happy to submit a PR if you that would help.

Thanks

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