S
Supabase4d ago
loup

Migrating my existing Supabase DB to Drizzle — possible or not?

Hey! Quick question. I’ve got a pretty big Supabase project where everything was built in the dashboard (tables, RLS, triggers, functions, etc.). I’d love to switch to Drizzle so my whole DB is managed by code. Before I try it: - Can I run drizzle-kit pull on my existing Supabase DB and get a clean schema.ts without losing anything? - After that, can Drizzle handle everything? (tables, changes, RLS policies, auth.uid(), triggers, functions…) - Basically: is it realistic to go full Drizzle on a DB that was originally built in the UI? Anyone doing this already?
1 Reply
ibrahim
ibrahim3d ago
I don't think drizzle can do everything, for example i don't think triggers/database functions can be defined (at least not naturally) I haven't used it all that much so i would reccomend trying and work case just reversing the changes via git

Did you find this page helpful?