Question

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

Solved · 7 views · asked by tomvibes · edited

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 · edited

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