updated updateSession and deleteSession routes to use external Ids, and added 'name' column to sessions table

This commit is contained in:
Storme-bit
2026-04-13 02:50:38 -07:00
parent 1f0d9acea8
commit f6d538f68a
3 changed files with 42 additions and 2 deletions

View File

@@ -14,6 +14,11 @@ function getDB() {
db.exec(schema);
try{
db.exec(`ALTER TABLE sessions ADD COLUMN name TEXT`)
} catch {}
// Sync FTS index with any existing episodes data
db.exec(`INSERT OR REPLACE INTO episodes_fts(rowid, user_message, ai_response)
SELECT id, user_message, ai_response FROM episodes`);