Skip to content

Make schema.sql re-runnable, fix code text search, and fix main's stale lockfile - #8

Merged
isiahpwilliams merged 1 commit into
mainfrom
preston/schema-fixes
Nov 8, 2026
Merged

isiahpwilliams merged 1 commit into
mainfrom
preston/schema-fixes

Conversation

@isiahpwilliams

Copy link
Copy Markdown
Collaborator

Makes index/schema.sql safe to re-run (CREATE OR REPLACE TRIGGER, grants only if the adhd role exists), switches text search from english to simple so identifiers aren't stemmed, adds embedding_model (required when embedding is set) and TIMESTAMPTZ, and adds index/setup_local.sh for the adhd_rag database retrieval/retrieve.py expects. Also regenerates uv.lock, which is out of date on main and failing CI.

🤖 Generated with Claude Code

- CREATE OR REPLACE TRIGGER, and grants only when the adhd role exists,
  so the file applies cleanly to fresh and existing databases
- 'simple' text search config: 'english' stemmed identifiers
  (get_user_settings -> get/user/set)
- embedding_model column, required whenever embedding is set
- TIMESTAMPTZ timestamps
- index/setup_local.sh creates the role and adhd_rag database that
  retrieval/retrieve.py expects; tests run when a local Postgres exists

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@isiahpwilliams
isiahpwilliams merged commit 27e731c into main Nov 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant