auto-sync: 2026-05-18 23:27:53

This commit is contained in:
cfdaily
2026-05-18 23:27:53 +08:00
parent 3dc054b359
commit d3f86cd600
+3
View File
@@ -103,6 +103,9 @@ def _migrate_v28(conn: sqlite3.Connection) -> None:
CREATE INDEX IF NOT EXISTS idx_tasks_parent ON tasks(parent_task);
CREATE INDEX IF NOT EXISTS idx_tasks_current_agent ON tasks(current_agent);
""")
def _safe_add_column(conn: sqlite3.Connection, table: str,
column: str, col_type: str) -> None:
"""安全添加列(已存在则跳过)"""
try: