## 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>
7 lines
206 B
SQL
7 lines
206 B
SQL
-- 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; |