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

Test postgres multi-schema introspection #3297

Merged
merged 3 commits into from Nov 25, 2022
Merged

Conversation

tomhoule
Copy link
Contributor

@tomhoule tomhoule commented Oct 17, 2022

The test expectations show that there are cases where our choice not
to rename models and enums in case of conflict leads to ambiguous
situations that may be difficult for users to resolve. The test case
where this is the most apparent is
multiple_schemas_w_duplicate_enums_are_introspected.

closes prisma/prisma#15800

@tomhoule tomhoule changed the title [wip] multi schema introspection crashes Test postgres multi-schema introspection Nov 25, 2022
The test expectations show that there are cases where our choice _not_
to rename models and enums in case of conflict leads to ambiguous
situations that may be difficult for users to resolve. The test case
where this is the most apparent is
`multiple_schemas_w_duplicate_enums_are_introspected`.

closes prisma/prisma#15800
@tomhoule tomhoule added this to the 4.7.0 milestone Nov 25, 2022
@tomhoule tomhoule marked this pull request as ready for review November 25, 2022 08:39
@tomhoule tomhoule requested a review from a team as a code owner November 25, 2022 08:39
Copy link
Contributor

@pimeys pimeys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine tests for me. Do we miss something still?

@tomhoule
Copy link
Contributor Author

Fine tests for me. Do we miss something still?

I'll try to think of more multi-schema specific cases, and maybe open an issue about the multi-schema specific model/enum ambiguities in introspection.

@tomhoule tomhoule merged commit c90cfc2 into main Nov 25, 2022
@tomhoule tomhoule deleted the ie/multi-schema-crash-2 branch November 25, 2022 09:18
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

Successfully merging this pull request may close these issues.

db pull with multiSchema error on schema with 2 models with the same table name but in a different schema
2 participants