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;