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

compare content of two schemas with different names #20

Open
blaluc opened this issue May 8, 2020 · 3 comments
Open

compare content of two schemas with different names #20

blaluc opened this issue May 8, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@blaluc
Copy link

blaluc commented May 8, 2020

Is it possible to compare the DB1.schemaA with DB2.schemaB?
In other words if two schemas on two different databases have different names but are supposed to contains the same tables, etc. is it possible to perform the comparison? How to configure the mapping in this scenario?

@michaelsogos
Copy link
Owner

Hi @blaluc ,

If i understood well, the purpose of this tool is exaclty what you intend.
I mean, no matter if database objects are in the same database but with a different schema (other than "public") or in different database.

To configure it you should follow the documentation, in there you will find a JSON.

In our experience we use it for different databases, i never used it to compare different schema on same database. (that should be exactly what you ask).

Did i helped you?

@blaluc
Copy link
Author

blaluc commented May 9, 2020

I read the json config, but I still don't understand how to configure the following scenario:
I have the source db with its connections params.
I have the target db with other connections params.
...so far so good, the documentation i clear.

Now I want to compare the schema named 'dev' on the source db with the schema named 'test' on the target. Where should I specify the two schema names?

In the options/schemaNamespace/namespaces node I see a flat list of schema names. How can I declare the mapping of the schema 'dev' on the source to the schema 'test' of the target?

@michaelsogos michaelsogos reopened this May 9, 2020
@michaelsogos
Copy link
Owner

Hi @blaluc

Sorry, I misunderstood your use case.
Actually it's not supported. It is like you want to compare two classes in different namespace or package. It is essentially an logical error; in any case, how should I recognize if two table having same name but in different schema must be compared? Just in case you have to consider that there are many potential unwanted comparison that will produce of course a wrong sql patch.

In any case I'd like to investigate further about this feature.

@michaelsogos michaelsogos self-assigned this May 9, 2020
@michaelsogos michaelsogos added the enhancement New feature or request label May 9, 2020
@michaelsogos michaelsogos added this to the Milestone 2.0 milestone Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Triage
Development

No branches or pull requests

2 participants