feat(MARS-1409-POSTHOOK): Add scripts to register missing files and rollback orphan file registrations

This commit is contained in:
Grzegorz Michalski
2026-03-26 16:52:38 +01:00
parent 904f5e347c
commit 00be955068
4 changed files with 319 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ PROMPT This will reverse all changes from MARS-1409-POSTHOOK installation.
PROMPT
PROMPT Rollback steps:
PROMPT 1. Clear A_WORKFLOW_HISTORY_KEY values from A_SOURCE_FILE_RECEIVED
PROMPT 2. Delete orphan file registrations (PROCESS_NAME = 'MARS-1409')
PROMPT ============================================================================
-- Confirm rollback with user
@@ -54,6 +55,12 @@ PROMPT STEP 1: Clear backfilled A_WORKFLOW_HISTORY_KEY values
PROMPT ============================================================================
@@91_MARS_1409_POSTHOOK_rollback_workflow_keys.sql
PROMPT
PROMPT ============================================================================
PROMPT STEP 2: Delete orphan file registrations (PROCESS_NAME = 'MARS-1409')
PROMPT ============================================================================
@@92_MARS_1409_POSTHOOK_rollback_register_missing_files.sql
PROMPT
PROMPT ============================================================================
PROMPT MARS-1409-POSTHOOK Rollback Complete