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

+8
View File
@@ -264,6 +264,14 @@ class Role(Model):
raw: JsonDict = {}
extracted_at: str | None = None
created_at: str
#: None unjudged, else -1 pass, 0 neutral, 1 like.
vote: Literal[-1, 0, 1] | None = None
voted_at: str | None = None
summary: str = ""
summarised_at: str | None = None
#: The posting page as plain text, for a role whose description is a teaser.
article_text: str = ""
article_at: str | None = None
class ExtractResult(ModelTaskResult):