feat(todos): 在 todos 表中添加 created_by_message_id 字段以支持消息关联
This commit is contained in:
parent
95cf152ab9
commit
7f262c9af2
@ -1493,8 +1493,8 @@ impl SessionStore {
|
||||
// Insert new todos
|
||||
for item in items {
|
||||
conn.execute(
|
||||
"INSERT OR REPLACE INTO todos (id, scope_key, session_id, topic_id, content, status, priority, created_at, updated_at)
|
||||
VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9)",
|
||||
"INSERT OR REPLACE INTO todos (id, scope_key, session_id, topic_id, content, status, priority, created_at, updated_at, created_by_message_id)
|
||||
VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10)",
|
||||
params![
|
||||
item.id,
|
||||
scope_key,
|
||||
@ -1505,6 +1505,7 @@ impl SessionStore {
|
||||
item.priority,
|
||||
item.created_at,
|
||||
now,
|
||||
item.created_by_message_id,
|
||||
],
|
||||
)?;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user