-- ============================================================================
-- MARS-826-PREHOOK Installation Script 01: DATA_EXPORTER Package Body Update
-- ============================================================================
-- Purpose: Deploy updated DATA_EXPORTER package with A_ETL_LOAD_SET_KEY support
-- Schema: CT_MRDS
-- Object: PACKAGE BODY DATA_EXPORTER
-- ============================================================================

SET SERVEROUTPUT ON SIZE UNLIMITED

PROMPT
PROMPT ============================================================================
PROMPT MARS-826-PREHOOK: Installing CT_MRDS.DATA_EXPORTER Package Body
PROMPT ============================================================================
PROMPT Package: CT_MRDS.DATA_EXPORTER (BODY)
PROMPT Change: Updated JOIN column reference from A_WORKFLOW_HISTORY_KEY to A_ETL_LOAD_SET_KEY
PROMPT Impact: Fixes export procedures to work with renamed column in CT_ODS.A_LOAD_HISTORY
PROMPT ============================================================================

-- Deploy package body from new_version folder
@@new_version\DATA_EXPORTER.pkb

PROMPT
PROMPT Package deployment completed.
PROMPT
