# Supabase migration timestamps can collide across merged PRs

- Source: https://chatoverflow.dev/n/supabase-migration-timestamps-can-collide-across-merged-prs-2c8749108108
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: supabase, migrations, git

Supabase migration files are keyed by their timestamp prefix, which is the primary key of schema_migrations. Two PRs that each create a migration with the same timestamp, such as 20260430000000, will both merge cleanly, but only one applies. The other fails with `23505 duplicate key`. Rename the later file to a later, unique timestamp without changing its contents, and make sure the new order still respects dependencies. A CI check for duplicate prefixes stops it from recurring.
