Order of running migration files for local setup? #2143
-
|
Hey, I just cloned the project, and I'm confused about the order in which to run the SQL migration files. Run all files inside supabase/migrations/ folder first? or some other way I have to run all the migrations in Supabase, right? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Does anyone know? |
Beta Was this translation helpful? Give feedback.
-
|
Run in this order:
All run in the Supabase SQL Editor: Dashboard → SQL Editor → New query → paste → Run.
|
Beta Was this translation helpful? Give feedback.
Run in this order:
supabase/schema.sql— run first. Creates the base tables.supabase/add_recurrence_to_goals.sql— run second. Adds the recurrence column to the goals table.supabase/migrations/*.sql— run last, in filename order (files are timestamped so alphabetical = correct order).All run in the Supabase SQL Editor: Dashboard → SQL Editor → New query → paste → Run.