Files
project-panel/__pycache__/database.cpython-312.pyc
T

44 lines
2.9 KiB
Plaintext
Raw Normal View History

Ë
2026-06-25 12:19:26 +08:00
©<jùãó:dZddlZddlmZddlmZdZdZdZy)u
æ•°æ®åº“æ“作模å
éN)Úg)ÚDB_FILEcó¼dtvrEtjt«t_tj
2026-06-25 12:19:26 +08:00
tj_tjS)uèŽ·å–æ•°æ®åº“连接Údb)rÚsqlite3ÚconnectrrÚRowÚ row_factory©óúR/home/openclaw/.openclaw/workspace-hz4th_coder/works/project-panel-dev/database.pyÚget_dbr s2à ”1œwÓŒÜ"Ÿ;™;ŒÔÜ 4‰4€Kr cóbttd«rtjj«yy)u关闭数æ®åº“连接rN)ÚhasattrrrÚclose)Úerrors r
Úclose_dbrsäŒqÜ 
ðr cójtjt«}tj|_|j «}|j
d«|j
d«|j
d«|j
d«|j
d«|j«|j«y)uåˆå§‹åŒ–æ•°æ®åº“aCREATE TABLE IF NOT EXISTS cron_tasks (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
expression TEXT NOT NULL,
command TEXT NOT NULL,
description TEXT,
category TEXT DEFAULT 'other',
enabled INTEGER DEFAULT 1,
created_at TEXT DEFAULT CURRENT_TIMESTAMP,
updated_at TEXT DEFAULT CURRENT_TIMESTAMP
)aØCREATE TABLE IF NOT EXISTS cron_history (
id INTEGER PRIMARY KEY AUTOINCREMENT,
task_id INTEGER NOT NULL,
version INTEGER NOT NULL,
name TEXT,
expression TEXT,
command TEXT,
description TEXT,
category TEXT,
enabled INTEGER,
operation TEXT,
operator TEXT DEFAULT 'system',
created_at TEXT DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (task_id) REFERENCES cron_tasks(id)
)a CREATE TABLE IF NOT EXISTS cron_logs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
task_id INTEGER,
execution_time TEXT DEFAULT CURRENT_TIMESTAMP,
status TEXT,
output TEXT,
FOREIGN KEY (task_id) REFERENCES cron_tasks(id)
)zICREATE INDEX IF NOT EXISTS idx_cron_history_task ON cron_history(task_id)zCCREATE INDEX IF NOT EXISTS idx_cron_logs_task ON cron_logs(task_id)N) rrrr r