From 7dd86d5433e67f5c5acbf5604bb7bb1493f993be Mon Sep 17 00:00:00 2001 From: Taylor Eernisse Date: Sun, 8 Feb 2026 14:33:13 -0500 Subject: [PATCH] fix(db): add missing schema_version insert to migration 019 Migration 019 created performance indexes but never recorded itself in the schema_version table. Without this row the migration runner considers the schema outdated and would attempt to re-apply. Adds the standard INSERT INTO schema_version for version 19. Co-Authored-By: Claude Opus 4.6 --- migrations/019_list_performance.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/migrations/019_list_performance.sql b/migrations/019_list_performance.sql index 817ffa3..b75dcf1 100644 --- a/migrations/019_list_performance.sql +++ b/migrations/019_list_performance.sql @@ -11,3 +11,6 @@ CREATE INDEX IF NOT EXISTS idx_mrs_updated_at_desc -- MRs already have idx_discussions_mr_resolved (migration 006). CREATE INDEX IF NOT EXISTS idx_discussions_issue_resolved ON discussions(issue_id, resolvable, resolved); + +INSERT INTO schema_version (version, applied_at, description) +VALUES (19, strftime('%s', 'now') * 1000, 'List performance indexes');