How to setup local Supabase supabase/migrations
folder to mirror schema of remote db
#6577
Replies: 4 comments 1 reply
-
It's in the docs
After that use this command to finalize the migration
|
Beta Was this translation helpful? Give feedback.
-
Delete your local migrations folder, mine was empty too and I had the same error message. I simply deleted the folder and tried again. It worked. |
Beta Was this translation helpful? Give feedback.
-
The solutions in the thread unfortunately don't work for me. Quoting my other reply here I'm trying to do the same and get an error.
Does anyone have a clue how to pull the remote database to local? Anyway, help is greatly appreciated and I will keep you up to date if I dont forget |
Beta Was this translation helpful? Give feedback.
-
In case anyone like me lands here rather than the docs: https://supabase.com/docs/reference/cli/supabase-db-pull |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use the following instructions to create a mirror of the remote Supabase db's schema in my local DB: https://supabase.com/docs/guides/local-development#linking-your-project
When I get to the step
supabase db remote set 'postgresql://postgres:<your_password>@db.<your_project_ref>.supabase.co:5432/postgres'
it fails with the following error:Beta Was this translation helpful? Give feedback.
All reactions