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;