fix(db): add missing is_paused column to session_plans

The is_paused column was missing from migration 0043, causing a production
error: "SqliteError: no such column 'is_paused'"

The other pause columns (paused_at, paused_by, paused_reason) were added
manually during development but is_paused was overlooked.

This commit:
- Reverts 0043 to a no-op (those columns already exist)
- Adds 0044 to add only the missing is_paused column

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock 2025-12-26 12:20:11 -06:00
parent ccea0f86ac
commit 9d8b5e1148
4 changed files with 1109 additions and 9 deletions

View File

@ -1,11 +1,6 @@
-- Custom SQL migration file, put your code below! --
-- Note: These columns were manually added during development.
-- Migration kept for consistency but columns already exist.
-- Columns added to session_plans:
-- is_paused integer DEFAULT 0 NOT NULL
-- paused_at integer
-- paused_by text
-- paused_reason text
-- The columns paused_at, paused_by, paused_reason were added manually during development.
-- This migration was kept for consistency but those columns already exist.
-- Note: is_paused was missing and is added in migration 0044.
SELECT 1;

View File

@ -0,0 +1,4 @@
-- Custom SQL migration file, put your code below! --
-- Add is_paused column that was missing from migration 0043
ALTER TABLE `session_plans` ADD `is_paused` integer DEFAULT 0 NOT NULL;

File diff suppressed because it is too large Load Diff

View File

@ -309,6 +309,13 @@
"when": 1766706763639,
"tag": "0043_add_session_pause_columns",
"breakpoints": true
},
{
"idx": 44,
"version": "6",
"when": 1766773151809,
"tag": "0044_add_is_paused_column",
"breakpoints": true
}
]
}
}