fix(search): 将搜索历史持久化到应用数据库

This commit is contained in:
2026-09-04 19:33:43 +08:00
parent 6eb97bf9ab
commit 1d0f19508a
9 changed files with 119 additions and 41 deletions
+7
View File
@@ -120,6 +120,13 @@ MIGRATIONS: list[str] = [
PRIMARY KEY(job_id, revision, options_hash)
);
""",
# v5: application-owned search history, shared by web and desktop clients.
"""
CREATE TABLE IF NOT EXISTS search_history (
id INTEGER PRIMARY KEY AUTOINCREMENT,
query TEXT NOT NULL UNIQUE
);
""",
]