Add prompt_json column to migration for upgrade path

This commit is contained in:
Jared Miller 2026-01-28 13:59:02 -05:00
parent 348b56183e
commit 7bf04ed184
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C

View file

@ -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",