-- Move TTLock encoder COM port from global config to per-workstation
ALTER TABLE workstations
  ADD COLUMN IF NOT EXISTS ttlock_com_port TEXT;

-- Remove workstation_id and com_port from global TTLock config
-- (com_port and workstation_id are now per-workstation)
ALTER TABLE hotel_ttlock_config
  DROP COLUMN IF EXISTS workstation_id,
  DROP COLUMN IF EXISTS com_port;
