A Supabase migration is a timestamped SQL file in your repository that the CLI applies to every database in order, so local, preview and production all end up with the same schema. Supabase migrations replace the habit of changing tables in the dashboard, which leaves no record of what changed or why. Once the workflow is in place, every schema change arrives as a file somebody can review.
This guide is for founders and small teams running a live product on Supabase, including apps that began in Lovable, Bolt or Cursor and now carry months of untracked table edits.…