ALTER TABLE to add an isolated property for projects

This commit is contained in:
Storme-bit
2026-04-14 00:59:54 -07:00
parent 649ed2b350
commit 8d4a553a2a

View File

@@ -26,6 +26,10 @@ function getDB() {
db.exec(`CREATE INDEX IF NOT EXISTS idx_sessions_project ON sessions(project_id)`); db.exec(`CREATE INDEX IF NOT EXISTS idx_sessions_project ON sessions(project_id)`);
} catch {} } catch {}
try {
db.exec(`ALTER TABLE projects ADD COLUMN isolated INTEGER NOT NULL DEFAULT 0`);
} catch {}
// Sync FTS index with any existing episodes data // Sync FTS index with any existing episodes data
db.exec(`INSERT OR REPLACE INTO episodes_fts(rowid, user_message, ai_response) db.exec(`INSERT OR REPLACE INTO episodes_fts(rowid, user_message, ai_response)