-- ============================================================================
-- FILE: add_iswinrm_column.sql
-- PURPOSE: Add iswinrm column to machines table for tracking WinRM status
-- DATE: 2025-12-05
--
-- USAGE: Run this on production database
--   mysql -u root -p shopdb < add_iswinrm_column.sql
-- ============================================================================

-- Add iswinrm column after isvnc
ALTER TABLE machines ADD COLUMN iswinrm BIT(1) NULL DEFAULT b'0' AFTER isvnc;

-- Verify the column was added
SELECT 'iswinrm column added successfully' AS status;
SHOW COLUMNS FROM machines WHERE Field IN ('isvnc', 'iswinrm');
