From b4abfd8e03fb1331dcdf6f65bb975b70421c81c6 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Tue, 8 Mar 2022 14:07:34 +0100 Subject: [PATCH] feat(DB): delta support multiple executions --- ee/scripts/helm/db/init_dbs/postgresql/1.5.3/1.5.3.sql | 2 +- scripts/helm/db/init_dbs/postgresql/1.5.3/1.5.3.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/scripts/helm/db/init_dbs/postgresql/1.5.3/1.5.3.sql b/ee/scripts/helm/db/init_dbs/postgresql/1.5.3/1.5.3.sql index 887eb4ce7..0d68e46b9 100644 --- a/ee/scripts/helm/db/init_dbs/postgresql/1.5.3/1.5.3.sql +++ b/ee/scripts/helm/db/init_dbs/postgresql/1.5.3/1.5.3.sql @@ -83,7 +83,7 @@ SET version_number= openreplay_version(); ALTER TABLE projects - ADD COLUMN save_request_payloads boolean NOT NULL DEFAULT FALSE; + ADD COLUMN IF NOT EXISTS save_request_payloads boolean NOT NULL DEFAULT FALSE; COMMIT; CREATE INDEX CONCURRENTLY IF NOT EXISTS requests_request_body_nn_idx ON events_common.requests (request_body) WHERE request_body IS NOT NULL; diff --git a/scripts/helm/db/init_dbs/postgresql/1.5.3/1.5.3.sql b/scripts/helm/db/init_dbs/postgresql/1.5.3/1.5.3.sql index 08b1630f2..159761b74 100644 --- a/scripts/helm/db/init_dbs/postgresql/1.5.3/1.5.3.sql +++ b/scripts/helm/db/init_dbs/postgresql/1.5.3/1.5.3.sql @@ -80,7 +80,7 @@ UPDATE tenants SET version_number= openreplay_version(); ALTER TABLE projects - ADD COLUMN save_request_payloads boolean NOT NULL DEFAULT FALSE; + ADD COLUMN IF NOT EXISTS save_request_payloads boolean NOT NULL DEFAULT FALSE; COMMIT;