ClaireDocs

Ask Claire

Search the project, not the web.

Answers are grounded in Claire’s published documentation and include the source pages used.

⌘/Ctrl + J opens Ask Claire anywhere in docs.

Deploying the database

Safely apply Claire schema changes and reload the API schema cache.

CurrentReviewed 2026-08-17View source ↗

Apply the migrations in supabase/migrations/ to a local Docker stack or your own Supabase project. They are timestamp-prefixed and must be applied in lexical order.

Applying migrations#

Terminal
bunx supabase login
bunx supabase link --project-ref <your-project-ref>
bunx supabase db push

Local development#

Terminal
bun run docker:supabase
bunx supabase db reset

Verify#

Confirm these tables exist:

  • users, contacts, chats, messages
  • ai_suggestions, loops, contact_inferences
  • user_preferences, auto_reply_rules

Then reload the PostgREST schema cache so the API sees the new shape immediately:

Terminal
docker exec supabase-db psql -U postgres -d postgres -c "NOTIFY pgrst, 'reload schema';"