From ff95187707ce99d9652386594e6f89a08d7d8cba Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Wed, 22 Apr 2026 21:23:46 +0200 Subject: [PATCH] db(deploy): add deployments.deployed_config_snapshot column (V3) Co-Authored-By: Claude Sonnet 4.6 --- .../db/migration/V3__deployment_config_snapshot.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cameleer-server-app/src/main/resources/db/migration/V3__deployment_config_snapshot.sql diff --git a/cameleer-server-app/src/main/resources/db/migration/V3__deployment_config_snapshot.sql b/cameleer-server-app/src/main/resources/db/migration/V3__deployment_config_snapshot.sql new file mode 100644 index 00000000..8ffc941d --- /dev/null +++ b/cameleer-server-app/src/main/resources/db/migration/V3__deployment_config_snapshot.sql @@ -0,0 +1,7 @@ +-- V3: per-deployment config snapshot for "last known good" + dirty detection +-- Captures {jarVersionId, agentConfig, containerConfig} at the moment a +-- deployment transitions to RUNNING. Historical rows are NULL; dirty detection +-- treats NULL as "everything dirty" and the next successful Redeploy populates it. + +ALTER TABLE deployments + ADD COLUMN deployed_config_snapshot JSONB;