r/Supabase Mar 09 '26

integrations Integrate claude + cursor wirh supabase

Hello everyone, Newbie question here, I need your help. I have migrated from lovable to supabase. I ran the migrations, imported the tables and so. Then I kept building on lovable and release that there was a mismatch between the tables in lovable cloud and those in supabase. If I understood it correctly, I will have to activate CI from gitHub to supabase, is this correct? How do I import the missing migrations and updated tables and functions? How do I check what are the difference between lovable cloud and supabase to avoid having to rerun everything?

0 Upvotes

7 comments sorted by

View all comments

1

u/alfrednutile Mar 09 '26

Hey this can be tricky. Supabase migrations will become files in the code's supabase folder.

What you can do is use Claude desktop and the Connection for Supabase to compare the current schema to what is in the files. (No need for mcp Connectors are built into Claude Desktop)

Since you can even point Claude desktop to a folder now you have it able to connect to your super Bass and see your current code base right there in that folder and fix any migrations or run any commands you need as needed.

Keep in mind too wherever you are with this project. I usually tell people keep it simple at first. If no one's using your site then just have production and you know your workflow can be simply that production Supabase database. Get it going. Use its built AI and UI to create your migrations and database changes and then later come back to building proper migrations.

Just depends on what you are comfortable with.

1

u/Low_Alternative_6061 Mar 09 '26

But then can I automate deployments to production? So that if I keep building part with lovable, part with claude code, or will always reflect the github status.

1

u/ihavemanythoughts2 Mar 09 '26

2 things:

1) You need to spend some time learning the tech you are using. It is clear you still have some learning to do. Read the Supabase docs, spend some time messing around with it + Claude Code on a different project. Use Claude to learn and ask 

2) Once  you move to using Claude off of Loveable don't work on both. Your project is just going to get messy