updated updateSession and deleteSession routes to use external Ids, and added 'name' column to sessions table
This commit is contained in:
@@ -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`);
|
||||
|
||||
Reference in New Issue
Block a user