Copy my prod database (tables, schema, edge functions, policies etc) to dev?
I have a lovable project connected to a database but now I plan to put it live, I want to keep a separate DEV and PROD database.
In lovable, I can disconnect PROD and connect DEV.
But I don't know how to copy everything from PROD to DEV? I can export schema but that's about it?
2 Replies
You can use the migration guide found here https://supabase.com/docs/guides/platform/migrating-within-supabase
appreciated!