Skip to content

Commit 536141b

Browse files
committed
Ensure key name uniqueness (#3641)
Fixes #3639 (cherry picked from commit 45e4cb1)
1 parent d7b1698 commit 536141b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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)