Add prompt_json column to migration for upgrade path
This commit is contained in:
parent
348b56183e
commit
7bf04ed184
1 changed files with 2 additions and 0 deletions
|
|
@ -36,6 +36,8 @@ let updateSessionStatsStmt: ReturnType<Database["prepare"]>;
|
|||
function runMigrations(): void {
|
||||
// Add Phase 2.3 session state and stats columns
|
||||
const migrations = [
|
||||
// Phase 2.1: Rich prompt support
|
||||
"ALTER TABLE prompts ADD COLUMN prompt_json TEXT",
|
||||
// Stats columns
|
||||
"ALTER TABLE sessions ADD COLUMN state TEXT DEFAULT 'ready'",
|
||||
"ALTER TABLE sessions ADD COLUMN prompts INTEGER DEFAULT 0",
|
||||
|
|
|
|||
Loading…
Reference in a new issue