Reputation: 39
I have created a project using supabase platform directly and not in local enviroment so all tables are in production, but now i need a local enviroment for development o test so i created a local project using this guide but the project is from scracth, the question is ¿how i can pull all tables from production to local enviroment?
Upvotes: 2
Views: 5765
Reputation: 61
supabase db pull only will download the db as migration file then you need to apply it by command supabase db reset.
Upvotes: 1
Reputation: 1841
You can do this by using pgdump to export the table schema and importing it back into your local environment. You can follow this guide https://supabase.com/docs/guides/platform/migrating-and-upgrading-projects
Upvotes: 4