diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-14 03:31:13 +0000 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-14 03:31:13 +0000 |
| commit | 5d00a06d8c7eeacc0a1058217e9c9e5676657605 (patch) | |
| tree | 54f4f24453233477644696599f3fcd928181ece9 /schema.sql | |
| parent | 19f10528b3aed1e08f492865820850c308697539 (diff) | |
| download | ai-memory-5d00a06d8c7eeacc0a1058217e9c9e5676657605.tar.gz | |
migrate by inspecting the schema, not by trusting user_version
A store can carry a newer column under an older version number: the genenetwork4 store reported user_version = 3 while already having reasoning.gist, so the v3->v4 ALTER failed with "duplicate column name: gist" and every command on that store died in open_db -- search included. Each step now adds its column only if it is missing, inspects pragma table_info, and writes the version at the end. Backfills still run only when a column was actually added.
Diffstat (limited to 'schema.sql')
0 files changed, 0 insertions, 0 deletions
