Relative Content

Tag Archive for postgresqldatabase-migrationsupabasesupabase-database

How to seed local DB from remote supabase DB

I have a supabase database. I’ve been doing development locally by directly connecting to the remote DB. I want to move to a local dev environment for the DB so that my remote DB does not get impacted. I went through the supabase docs here and set it up. I ran migrations and teh local database is up and running with all my tables. But there is no data. I see that I can put insert quries in the seed.sql file which runs after DB reset and applying migrations.