Skip to content

Commit

Permalink
Fix broken test as well
Browse files Browse the repository at this point in the history
  • Loading branch information
gem-neo4j committed Dec 17, 2024
1 parent 4f3ae7d commit d7514e6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions core/src/main/java/apoc/schema/Schemas.java
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,18 @@ private IndexConstraintNodeInfo nodeInfoFromConstraintDefinition(
0,
0,
0,
ktx.schemaRead()
nodeConstraintCypher5Compatibility(ktx.schemaRead()
.constraintGetForName(constraintDefinition.getName())
.userDescription(tokens));
.userDescription(tokens), useStoredName)
);
}

private String nodeConstraintCypher5Compatibility(String userDescription, Boolean useStoredName) {
if (useStoredName) {
return userDescription;
} else {
return userDescription.replace("'NODE PROPERTY UNIQUENESS'", "'UNIQUENESS'");
}
}

/**
Expand Down

0 comments on commit d7514e6

Please sign in to comment.