Skip to content

Restrict compare by type  #230

@dhrapson

Description

@dhrapson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions