© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•14mo ago•
1 reply
Md Rakib Ali

Help Needed to Recover Deleted Tables in Supabase

Hi everyone,

I connected my Supabase database to Prisma recently and accidentally ran npx prisma migrate dev without defining any models in my schema.prisma file. As a result, all my existing tables in Supabase were deleted.

I’d like to know:

Is there a way to restore the deleted tables in Supabase?
Are there any automated backups in Supabase that I can use to recover my data?
Can I retrieve the SQL queries for the original table creation from the SQL history or logs?
Here are the details:

What happened: Prisma migration deleted all tables in my Supabase database.
What I need: A way to recover the original schema and data.
Any guidance or tips would be greatly appreciated. Thanks in advance!

Best regards
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Deleted critical tables by mistake, can Supabase recover data from internal backups?
SupabaseSSupabase / help-and-questions
3mo ago
How to recover lost tables?
SupabaseSSupabase / help-and-questions
14mo ago
Accidentally deleted Supabase project from my organisation , can SupaBase recover it ?
SupabaseSSupabase / help-and-questions
3mo ago
Help: Deleted GitHub → lost Supabase access
SupabaseSSupabase / help-and-questions
5mo ago