Skip to content

Commit ee655ee

Browse files
committed
chore(db): align migration filenames with the applied prod versions
MCP apply_migration restamps the version it records; prod logged 20260815204334, not the 20260815120000 in the filename. Rename so supabase db push does not rerun it, and renumber the follow-up drop migration to stay after it.
1 parent e99c87c commit ee655ee

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

supabase/migrations/20260815120000_move_backup_pins_to_service_role_table.sql renamed to supabase/migrations/20260815204334_move_backup_pins_to_service_role_table.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ ON CONFLICT (user_id) DO NOTHING;
6767

6868
-- --------------------------------------------------------------------------
6969
-- The `users.backup_pin_hash` column itself is dropped by the NEXT migration,
70-
-- 20260815120100_drop_users_backup_pin_hash.sql. It is deliberately a separate
70+
-- 20260815204400_drop_users_backup_pin_hash.sql. It is deliberately a separate
7171
-- step: this migration is additive and safe to apply to a running deployment,
7272
-- whereas the drop must not land until the application code that stopped
7373
-- reading that column has shipped.

supabase/migrations/20260815120100_drop_users_backup_pin_hash.sql renamed to supabase/migrations/20260815204400_drop_users_backup_pin_hash.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
-- Step 4b of the 2026-08 security remediation.
22
-- Advisory: GHSA-jpfm-vrpc-p6rr
33
--
4-
-- Second half of 20260815120000_move_backup_pins_to_service_role_table.sql.
4+
-- Second half of 20260815204334_move_backup_pins_to_service_role_table.sql.
5+
--
6+
-- NOTE: when this is applied via the Supabase MCP, the ledger will restamp it
7+
-- with its own timestamp. Rename this file to match afterwards, or
8+
-- `supabase db push` will rerun it.
59
-- That migration created the service-role-only `user_backup_pins` table and
610
-- carried across which users have a PIN set. This one removes the column that
711
-- every logged-in account could read via `users_select_authenticated`.

0 commit comments

Comments
 (0)