Schema v4: a role's vote, summary and fetched posting text

One migration for the columns the phone UI's votes, summaries and read page
need, so the packages that build those never both touch the schema. The
columns sit before created_at in SCHEMA: SQLite cannot drop a last column
whose preceding comment would then swallow the closing parenthesis, which
the v1 migration test does.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-25 21:23:12 +02:00
1 parent eee17a6aaf
commit 8c4bc3112a
3 files changed
+29 -1

No files matched your search

+2 -1
View File
@@ -85,7 +85,8 @@ def test_a_v1_file_migrates_to_the_shape_a_new_file_has(tmp_path: Path) -> None:
Store(fresh)
Store(old)
with sqlite3.connect(old) as conn:
for column in ("permit", "languages", "extract_tries"):
for column in ("permit", "languages", "extract_tries", "vote", "voted_at",
"summary", "summarised_at", "article_text", "article_at"):
conn.execute(f"ALTER TABLE roles DROP COLUMN {column}")
for column in ("intent_key", "intent_vec"):
conn.execute(f"ALTER TABLE agents DROP COLUMN {column}")