Skip to content

fix(supabase): sync local migrations with remote history (asset registry) - #84

Merged
YD811 merged 1 commit into
mainfrom
fix/supabase-migration-sync
Jul 15, 2026
Merged

fix(supabase): sync local migrations with remote history (asset registry)#84
YD811 merged 1 commit into
mainfrom
fix/supabase-migration-sync

Conversation

@YD811

@YD811 YD811 commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Fixes the failing Supabase migration check on main (commit 5b8a370): Remote migration versions not found in local migrations directory.

Root cause

Versions 20260629193917 (asset_registry_v1) and 20260629194328 (asset_registry_rls) were applied to the remote database on 2026-06-29 via MCP apply_migration during the asset-registry work, but the corresponding files were never committed — so the remote history has two versions the repo doesn't know about.

Fix

Reconstructs both migration files verbatim from supabase_migrations.schema_migrations.statements on the remote, with matching timestamps. No schema changes — the SQL is already applied; this only makes local history match remote.

Note for feat/asset-registry-docs-v1

That branch carries 20260629120000_asset_registry.sql with overlapping content but a different (earlier) timestamp that the remote has never applied. When that branch is rebased on this, the file should be dropped in favor of the two files added here — otherwise db push will try to apply it again.

🤖 Generated with Claude Code

…026-06-29

The Supabase migration check on main fails with 'Remote migration versions
not found in local migrations directory': versions 20260629193917
(asset_registry_v1) and 20260629194328 (asset_registry_rls) exist in
supabase_migrations.schema_migrations on the remote (applied via MCP
apply_migration during the asset-registry work) but were never committed.

Reconstructs both files verbatim from the statements stored in the remote
migration history so local and remote histories match.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
potbot-v2 Ready Ready Preview, Comment, Open in v0 Jul 15, 2026 7:51pm

Request Review

@supabase

supabase Bot commented Jul 15, 2026

Copy link
Copy Markdown

Updates to Preview Branch (fix/supabase-migration-sync) ↗︎

Deployments Status Updated
Database Wed, 15 Jul 2026 19:48:34 UTC
Services Wed, 15 Jul 2026 19:48:34 UTC
APIs Wed, 15 Jul 2026 19:48:34 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations Wed, 15 Jul 2026 19:48:39 UTC
Migrations Wed, 15 Jul 2026 19:48:40 UTC
Seeding ⏸️ Wed, 15 Jul 2026 19:48:30 UTC
Edge Functions ⏸️ Wed, 15 Jul 2026 19:48:30 UTC

❌ Branch Error • Wed, 15 Jul 2026 19:48:40 UTC

ERROR: column "referrer_wallet" does not exist (SQLSTATE 42703)
At statement: 1
create index if not exists referrals_referrer_idx
  on referrals (referrer_wallet)

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

@YD811
YD811 merged commit e51804d into main Jul 15, 2026
6 of 8 checks passed
@YD811
YD811 deleted the fix/supabase-migration-sync branch July 15, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant