From 2887fe95991f1f080ca841832151ccf88f5a2c65 Mon Sep 17 00:00:00 2001 From: claude Date: Tue, 24 Mar 2026 16:13:11 +0100 Subject: [PATCH] feat: add V3 migration for engine_level and route-level snapshot columns --- .../db/migration/V3__engine_level_and_snapshots.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cameleer3-server-app/src/main/resources/db/migration/V3__engine_level_and_snapshots.sql diff --git a/cameleer3-server-app/src/main/resources/db/migration/V3__engine_level_and_snapshots.sql b/cameleer3-server-app/src/main/resources/db/migration/V3__engine_level_and_snapshots.sql new file mode 100644 index 00000000..a8d65e14 --- /dev/null +++ b/cameleer3-server-app/src/main/resources/db/migration/V3__engine_level_and_snapshots.sql @@ -0,0 +1,9 @@ +-- Add engine level and route-level snapshot columns to executions table. +-- Required for REGULAR engine level where route-level payloads exist but +-- no processor execution records are created. + +ALTER TABLE executions ADD COLUMN IF NOT EXISTS engine_level VARCHAR(16); +ALTER TABLE executions ADD COLUMN IF NOT EXISTS input_body TEXT; +ALTER TABLE executions ADD COLUMN IF NOT EXISTS output_body TEXT; +ALTER TABLE executions ADD COLUMN IF NOT EXISTS input_headers JSONB; +ALTER TABLE executions ADD COLUMN IF NOT EXISTS output_headers JSONB;