Skip to content

Commit

Permalink
psl: do not check for cyclic relations when using the new relation mo…
Browse files Browse the repository at this point in the history
…de 'prismaSkipIntegrity'
  • Loading branch information
ItzSiL3Nce committed Aug 7, 2023
1 parent 9c373b7 commit 71be3ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ pub(super) fn cycles(relation: CompleteInlineRelationWalker<'_>, ctx: &mut Conte
.has_capability(ConnectorCapability::ReferenceCycleDetection)
&& ctx
.datasource
.map(|ds| ds.relation_mode().uses_foreign_keys())
.map(|ds| ds.relation_mode().should_skip_emulated_referential_integrity())
.unwrap_or(true)
{
return;
Expand Down

0 comments on commit 71be3ed

Please sign in to comment.