SupabaseS
Supabase2y ago
Ian

Can I generate migrations from existing supabase project?

I'm embarrassed to say I've been adding tables, policies and functions via the GUI as I develop my project over the last few months, rather than writing migrations locally and pushing them to the db using CLI. So I have no migrations at all.

Can I use the CLI to generate migrations files for my existing supabase project?

Would I use supabase db diff --schema public
Was this page helpful?