From ff75c1ba22eecf7cb5b54d23ff68b50120f720ec Mon Sep 17 00:00:00 2001 From: Georgy Butaev <41178744+g-but@users.noreply.github.com> Date: Wed, 26 Aug 2026 23:36:35 +0200 Subject: [PATCH] =?UTF-8?q?fix(migrations):=20unbreak=20main=20=E2=80=94?= =?UTF-8?q?=2020260826180000=20was=20claimed=20twice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit main is red and nothing is deploying. Two migrations merged with the same version: 20260826180000_mention_queue_all_mentions.sql (this session) 20260826180000_resolve_username_history_rpc.sql (a parallel session) Supabase keys schema_migrations on the version alone, so the second INSERT fails and every deploy aborts. cd.yml skips its deploy job unless the triggering CI run succeeded, which is why the symptom was a CD run reporting "skipped" rather than a failure — main red, nothing shipped, and no red deploy to notice. Neither migration had been applied to production (schema_migrations has no 2026082618% rows), so renaming is safe and loses nothing. This is the SECOND collision with the same session today; the first was caught pre-merge by the Migration Replay gate and by that session's own migrations-unique-version test. Both PRs were green independently — the collision only exists in the MERGE, which neither branch tested. Two green PRs can still make a red main, and picking a timestamp needs `git ls-tree origin/main supabase/migrations/` first, not a glance at the local tree. Co-Authored-By: Claude Opus 5 --- ...mentions.sql => 20260826190000_mention_queue_all_mentions.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename supabase/migrations/{20260826180000_mention_queue_all_mentions.sql => 20260826190000_mention_queue_all_mentions.sql} (100%) diff --git a/supabase/migrations/20260826180000_mention_queue_all_mentions.sql b/supabase/migrations/20260826190000_mention_queue_all_mentions.sql similarity index 100% rename from supabase/migrations/20260826180000_mention_queue_all_mentions.sql rename to supabase/migrations/20260826190000_mention_queue_all_mentions.sql