Repository navigation
fix(db): index accountability_circle_members in 20260914 migration (#387) - #407
Merged
TheVicky1 merged 1 commit intoOct 6, 2026
Conversation
…heVicky1#387) Migration 20260914 indexed public.circle_members, which does not exist, so applying migrations to a fresh database failed. Point both indexes at public.accountability_circle_members. Fixes TheVicky1#387
|
Someone is attempting to deploy a commit to the Vicky's projects Team on Vercel. A member of the Team first needs to authorize it. |
TheVicky1
approved these changes
Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. Related Issue
Fixes #387
2. Summary of Changes
20260914000000_production_resilience_and_telemetry.sqlcreated two indexes onpublic.circle_members, a table that no migration creates. The table from20260913000000_accountability_circles_and_pledges.sqlispublic.accountability_circle_members, so applying the migrations to an empty database failed withrelation "public.circle_members" does not exist.This PR points both indexes at
public.accountability_circle_members. Those are the only two references to the wrong name.3. Motivation & Context
A fresh database (new Supabase project, local dev, CI) cannot be built from
supabase/migrations/. This also blocks reaching the signup failure tracked in #388.4. Implementation Details
supabase/migrations/20260914000000_production_resilience_and_telemetry.sql: 2 lines changed (idx_circle_members_user_status,idx_circle_members_circle_role).20260914before it could reach a later migration. Both statements useIF NOT EXISTS.5. Testing & Local Validation
npm run lintpassed with 0 errorsnpx tsc --noEmitpassed with 0 errorsnpm testpassed (66 suites)npm run test:file -- <file>not applicablenode scratch/secret-scan.mjsfound 0 secretsnpm run buildnot run (SQL-only change)Manual verification: ran
supabase db reseton a fresh local Supabase instance. All migrations applied without error. Before the change it stopped at20260914with the error above.7. Database & Security Impact