fix: Add missing deployment_status and deployment_message columns to teams table

## Problem
WHOOSH was failing to update team deployment status with database errors:
- ERROR: column 'deployment_status' of relation 'teams' does not exist (SQLSTATE 42703)
- This prevented proper tracking of agent deployment progress

## Solution
- **Added migration 007**: Creates deployment_status and deployment_message columns
- **deployment_status VARCHAR(50)**: Tracks deployment state (pending/success/failed)
- **deployment_message TEXT**: Stores deployment error messages or status details
- **Added index**: For efficient deployment status queries
- **Backward compatibility**: Sets default values for existing teams

## Impact
-  Fixes team deployment status tracking errors
-  Enables proper agent deployment monitoring
-  Maintains data consistency with existing teams
-  Improves query performance with new index

This resolves the database errors that were preventing WHOOSH from tracking autonomous team deployment status.

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude Code
2025-09-24 15:59:21 +10:00
parent a0b977f6c4
commit dd4ef0f5e3
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
-- Remove deployment status tracking from teams table
DROP INDEX IF EXISTS idx_teams_deployment_status;
ALTER TABLE teams
DROP COLUMN IF EXISTS deployment_status,
DROP COLUMN IF EXISTS deployment_message;