auto-sync: 2026-05-18 00:21:21

This commit is contained in:
cfdaily
2026-05-18 00:21:21 +08:00
parent 502707f2c5
commit 6ba615739c
+4
View File
@@ -14,8 +14,12 @@ def init_db(db_path: Path) -> None:
try:
for stmt in _SCHEMA_STATEMENTS:
conn.execute(stmt)
for stmt in _CARDS_SCHEMA:
conn.execute(stmt)
# v2.6.1 迁移:旧 DB 可能缺少新字段
_migrate_v261(conn)
# v2.7 迁移:cards 表 + card_id + stage
_migrate_v27(conn)
conn.commit()
finally:
conn.close()