From 82a7a5fc863cca97ed00a4f84de25a5a38118413 Mon Sep 17 00:00:00 2001 From: LemonNexus Date: Wed, 11 Feb 2026 10:50:46 +0000 Subject: [PATCH] fix: add status column to sessions table in schema.sql for new databases --- core/schema.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/core/schema.sql b/core/schema.sql index 00add92..557a63d 100644 --- a/core/schema.sql +++ b/core/schema.sql @@ -36,6 +36,7 @@ CREATE TABLE IF NOT EXISTS sessions ( project_id INTEGER NOT NULL, started_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, ended_at TIMESTAMP, + status TEXT DEFAULT 'running' CHECK (status IN ('running', 'paused', 'completed', 'stopped')), duration_seconds INTEGER DEFAULT 0, total_spent_ped REAL DEFAULT 0.0, -- Decimal stored as REAL, handled in code total_return_ped REAL DEFAULT 0.0,