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

Error for referencing over schemas #1493

Merged
merged 2 commits into from
Jan 6, 2021
Merged

Conversation

pimeys
Copy link
Contributor

@pimeys pimeys commented Jan 5, 2021

We do not support referencing between different schemas, so we should give a proper error for the user.

Example:

Illegal cross schema reference from mssql_cross_schema_references_are_not_allowed.User to mssql_foreign_key_on_delete_must_be_handled_B.City in constraint FK__city. Foreign keys between database schemas are not supported in Prisma. Please follow the GitHub ticket: prisma/prisma#1175

Closes: prisma/prisma#4890

We do not support referencing between different schemas, so we should
give a proper error for the user.
@pimeys pimeys added this to the 2.15.0 milestone Jan 5, 2021
Copy link
Member

@do4gr do4gr left a comment

Choose a reason for hiding this comment

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

LGTM!

@pimeys pimeys merged commit 62ebf49 into master Jan 6, 2021
@pimeys pimeys deleted the cross-schema-referencing-error branch January 6, 2021 14:57
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.

Better error message for cross schema foreign keys
2 participants