From 425d89b4d412adce216e5f58bc985743b0da311b Mon Sep 17 00:00:00 2001 From: Brad Seiler Date: Thu, 29 Oct 2026 19:57:05 -0400 Subject: [PATCH] docs(db): align invitation repair with schema 0075 Co-authored-by: Sarnow <1894dcbafaa4df1ac607a9bf879ac0b7d77fbccb0e0f4619ecc252c8adbad8a2@seiler-test.communities.public.builderlabstaging.xyz> Signed-off-by: Brad Seiler --- TESTING.md | 4 ++-- scripts/maintenance/backfill_invite_revocations.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TESTING.md b/TESTING.md index 035fe059c5..fa3a9a3a82 100644 --- a/TESTING.md +++ b/TESTING.md @@ -236,8 +236,8 @@ can be repaired under the same controls. Use a **fresh disposable database through migration 0074**, the complete pre-change schema including channel join roles, for upgrade testing. Do not reuse -an older database that applied the invitation migration numbered 0074 or a -different 0075 checksum; reconcile it separately without resetting a user's +an older database that applied an invitation migration under an earlier number +or a different 0075 checksum; reconcile it separately without resetting a user's database. Seed legacy links for a restricted issuer and an unrelated issuer; lift the first restriction before upgrade. Apply schema-only 0075 and confirm it rewrites no invite rows. Before diff --git a/scripts/maintenance/backfill_invite_revocations.sql b/scripts/maintenance/backfill_invite_revocations.sql index 96859417ae..286da2578b 100644 --- a/scripts/maintenance/backfill_invite_revocations.sql +++ b/scripts/maintenance/backfill_invite_revocations.sql @@ -1,5 +1,5 @@ -- This companion must be separately approved before core deployment and run --- in that same controlled rollout, after schema migration 0068 and draining +-- in that same controlled rollout, after schema migration 0075 and draining -- every old writer. Prevent invite mint/claim, ban lifts, and NEW timeouts/mutes -- throughout drain/repair. Without controls covering all writer paths, remove -- public traffic and stop all relay/admin/background/direct writers; run only