fix(guild): make GuildInvite unique index partial on Status=Pending to allow re-invite after reject/cancel
Partial index (filter: "Status" = 0) replaces the unconditional unique index on (GuildId, InviteeViewerId). Old Rejected/Canceled rows no longer conflict when a new Pending invite is inserted for the same pair. Adds regression tests: Reinvite_after_reject_succeeds and Reinvite_after_cancel_succeeds. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
5008
SVSim.Database/Migrations/20260627172620_MakeGuildInviteUniqueIndexPartial.Designer.cs
generated
Normal file
5008
SVSim.Database/Migrations/20260627172620_MakeGuildInviteUniqueIndexPartial.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user