Repository navigation
chore: Supabase baseline migration + security docs - #247
Merged
Merged
Conversation
|
Updates to Preview Branch (chore/docs-and-supabase-baseline) ↗︎
Tasks are run on every commit but only new migration files are pushed.
❌ Branch Error • Fri, 15 May 2026 21:20:19 UTC View logs for this Workflow Run ↗︎. |
#236 #242 #247) - Add 20260101000000_baseline_schema.sql: full idempotent snapshot of all 15 tables, functions, trigger, grants and RLS policies so Supabase preview branches and local db reset work without errors (issue #247) - Add 20260515_rec_cache_ownership.sql: owner-scoped write policies for recommendation_cache, adding written_by column (issue #235; already live) - Make 20260514 delta idempotent: ADD COLUMN IF NOT EXISTS - Update CHANGELOG.md with [1.5.7] security + infra entries - Update CLAUDE.md: sportySync JWT auth, rec_cache written_by, prompt XML tags, Supabase preview pitfall (#247) - Update README.md: SPORTY_SYNC_API_KEY now health-endpoint-only Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ChristopherRotnes
force-pushed
the
chore/docs-and-supabase-baseline
branch
from
May 15, 2026 21:12
12d12ef to
406fcd4
Compare
…pat) CREATE POLICY IF NOT EXISTS is PostgreSQL 17+ only. Supabase preview branches run PG15/16. Replace every occurrence in the baseline and rec_cache_ownership migrations with DROP POLICY IF EXISTS + CREATE POLICY (idempotent on PG15+). Same fix for CREATE TRIGGER IF NOT EXISTS. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3 tasks
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.
Summary
20260101000000_baseline_schema.sql— a full idempotent snapshot of all 15 tables so Supabase preview branches stop failing with "relation does not exist" on every PR (issue chore: Supabase baseline migration + security docs #247)20260515_rec_cache_ownership.sql(was applied to prod via MCP but never committed)IF NOT EXISTS)Changes
supabase/migrations/20260101000000_baseline_schema.sql— new baseline (allIF NOT EXISTS)supabase/migrations/20260515_rec_cache_ownership.sql— owner-scoped rec-cache policiessupabase/migrations/20260514_…—ADD COLUMN IF NOT EXISTSCHANGELOG.md— [1.5.7] with 7 security items + infra itemCLAUDE.md— sportySync JWT auth, rec_cache written_by, prompt XML tags, Supabase preview pitfallREADME.md— SPORTY_SYNC_API_KEY now health-endpoint-onlyTest plan
🤖 Generated with Claude Code