fix: Migration 028 - remove is_active from index (column doesn't exist yet)
All checks were successful
Deploy Development / deploy (push) Successful in 49s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 13s

Migration 028 failed because goals table doesn't have is_active column yet.
Removed WHERE clause from index definition.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Lars 2026-03-27 12:36:58 +01:00
parent caebc37da0
commit 448d19b840

View File

@ -52,7 +52,6 @@ END;
-- ============================================================================ -- ============================================================================
CREATE INDEX IF NOT EXISTS idx_goals_category_priority CREATE INDEX IF NOT EXISTS idx_goals_category_priority
ON goals(profile_id, category, priority) ON goals(profile_id, category, priority);
WHERE is_active = true;
COMMENT ON INDEX idx_goals_category_priority IS 'Fast lookup for category-grouped goals sorted by priority'; COMMENT ON INDEX idx_goals_category_priority IS 'Fast lookup for category-grouped goals sorted by priority';