From cfdd687216799cb5b47f099f1e7cd5dd16b3bdd0 Mon Sep 17 00:00:00 2001
From: Kujtim Hoxha <kujtimii.h@gmail.com>
Date: Thu, 3 Apr 2025 15:20:15 +0200
Subject: add initial lsp support

---
 internal/db/sql/messages.sql | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

(limited to 'internal/db/sql/messages.sql')

diff --git a/internal/db/sql/messages.sql b/internal/db/sql/messages.sql
index 0674e62c1..64571158f 100644
--- a/internal/db/sql/messages.sql
+++ b/internal/db/sql/messages.sql
@@ -14,25 +14,18 @@ INSERT INTO messages (
     id,
     session_id,
     role,
-    finished,
-    content,
-    tool_calls,
-    tool_results,
+    parts,
     created_at,
     updated_at
 ) VALUES (
-    ?, ?, ?, ?, ?, ?, ?, strftime('%s', 'now'), strftime('%s', 'now')
+    ?, ?, ?, ?, strftime('%s', 'now'), strftime('%s', 'now')
 )
 RETURNING *;
 
 -- name: UpdateMessage :exec
 UPDATE messages
 SET
-    content = ?,
-    thinking = ?,
-    tool_calls = ?,
-    tool_results = ?,
-    finished = ?,
+    parts = ?,
     updated_at = strftime('%s', 'now')
 WHERE id = ?;
 
-- 
cgit v1.2.3

