- Redesign AgentUpdatesEnhanced with tab-based workflow (pending/approved/installing/installed) - Add AgentStorage component with disk partition table - Add AgentScanners component for agent health monitoring - Fix agent removal not refreshing list (cache invalidation) - Bump agent version to 0.1.18 (enhanced disk detection) - Update server default version to 0.1.18 - Add command source tracking (system/manual) migration - Improve Linux disk detection for all physical mount points
18 lines
681 B
SQL
18 lines
681 B
SQL
-- Add source field to agent_commands table to track command origin
|
|
-- 'manual' = user-initiated via UI
|
|
-- 'system' = automatically triggered by system operations (scans, installs, etc)
|
|
|
|
ALTER TABLE agent_commands
|
|
ADD COLUMN source VARCHAR(20) DEFAULT 'manual' NOT NULL;
|
|
|
|
-- Add check constraint to ensure valid source values
|
|
ALTER TABLE agent_commands
|
|
ADD CONSTRAINT agent_commands_source_check
|
|
CHECK (source IN ('manual', 'system'));
|
|
|
|
-- Add index for filtering commands by source
|
|
CREATE INDEX idx_agent_commands_source ON agent_commands(source);
|
|
|
|
-- Update comment
|
|
COMMENT ON COLUMN agent_commands.source IS 'Command origin: manual (user-initiated) or system (auto-triggered)';
|