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:
gamer147
2026-06-27 13:29:06 -04:00
parent 1b7fa2d525
commit 11a129ea90
4 changed files with 5148 additions and 1 deletions

File diff suppressed because it is too large Load Diff