Skip to content

Commit 45e4cb1

Browse files
authored
Ensure key name uniqueness (#3641)
Fixes #3639
1 parent b3f1cd7 commit 45e4cb1

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/EFCore.PG/Metadata/Conventions/NpgsqlSharedTableConvention.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ protected override bool AreCompatible(IReadOnlyIndex index, IReadOnlyIndex dupli
2424
=> base.AreCompatible(index, duplicateIndex, storeObject)
2525
&& index.AreCompatibleForNpgsql(duplicateIndex, storeObject, shouldThrow: false);
2626

27+
/// <inheritdoc />
28+
protected override bool KeysUniqueAcrossTables
29+
=> true;
30+
31+
/// <inheritdoc />
32+
protected override bool ForeignKeysUniqueAcrossTables
33+
=> false;
34+
35+
/// <inheritdoc />
36+
protected override bool IndexesUniqueAcrossTables
37+
=> true;
38+
2739
/// <inheritdoc />
2840
protected override bool CheckConstraintsUniqueAcrossTables
2941
=> false;

0 commit comments

Comments
 (0)