-- MARS-828: Create validation trigger for archival strategy
-- Author: Grzegorz Michalski
-- Date: 2026-01-27
-- Description: Validates archival strategy configuration consistency

PROMPT ========================================
PROMPT MARS-828: Creating archival strategy validation trigger
PROMPT ========================================

@@new_version/TRG_BI_A_SRC_FILE_CFG_ARCH_VAL.sql

-- Verify trigger created
SELECT 
    trigger_name,
    status,
    trigger_type,
    triggering_event
FROM all_triggers 
WHERE owner = 'CT_MRDS' 
  AND trigger_name = 'TRG_BI_A_SRC_FILE_CFG_ARCH_VAL';

PROMPT ========================================
PROMPT Archival strategy validation trigger created successfully
PROMPT ========================================
