-- ============================================================================
-- MARS-1409 Rollback 91: Drop A_WORKFLOW_HISTORY_KEY column
-- ============================================================================
-- Purpose: Remove A_WORKFLOW_HISTORY_KEY column from A_SOURCE_FILE_RECEIVED
-- ============================================================================

SET SERVEROUTPUT ON SIZE UNLIMITED

PROMPT
PROMPT Dropping A_WORKFLOW_HISTORY_KEY column from A_SOURCE_FILE_RECEIVED...

-- Drop A_WORKFLOW_HISTORY_KEY column (no FK constraint to drop first)
ALTER TABLE CT_MRDS.A_SOURCE_FILE_RECEIVED 
DROP COLUMN A_WORKFLOW_HISTORY_KEY;

PROMPT A_WORKFLOW_HISTORY_KEY column dropped successfully!
PROMPT
