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
|
// Insert new todos
|
||||||
for item in items {
|
for item in items {
|
||||||
conn.execute(
|
conn.execute(
|
||||||
"INSERT OR REPLACE INTO todos (id, scope_key, session_id, topic_id, content, status, priority, created_at, updated_at)
|
"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)",
|
VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10)",
|
||||||
params![
|
params![
|
||||||
item.id,
|
item.id,
|
||||||
scope_key,
|
scope_key,
|
||||||
@ -1505,6 +1505,7 @@ impl SessionStore {
|
|||||||
item.priority,
|
item.priority,
|
||||||
item.created_at,
|
item.created_at,
|
||||||
now,
|
now,
|
||||||
|
item.created_by_message_id,
|
||||||
],
|
],
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user