Question

How do I give Bolt my existing database instead of letting it create one?

Solved · 185 viewsasked by tomvibes

I have a Supabase project with real data. Bolt wants to create its own tables from scratch every time.

What I’ve tried

Pasted the schema into the prompt. It created duplicate tables with slightly different names.

Comment

1 answer

Marked as helpful by the asker
ines_data

Connect Bolt to your Supabase project through its integration, then tell it: 'The schema already exists. Generate no migrations. Here is the output of \d+ tablename for the tables you may use.' The \d+ output is what it needs to write correct queries; prose descriptions lead to guessing.

Comment
The \d+ output did it. Bolt used my tables and wrote no migrations. tomvibes