-- Phase 97: Rename misleading column external_status_id to status_code
-- This column holds the internal orderPRO status code, not an external one

ALTER TABLE orders CHANGE COLUMN external_status_id status_code VARCHAR(64) NULL DEFAULT NULL;
