From 5e472b691165f324eaa97eff89aa767489fe9140 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 16 May 2023 16:10:10 +0200 Subject: [PATCH] increase payload size from 10kb to 512kb for capture endpoint --- .../migrations/20230516140626_capture_check_increase.down.sql | 1 + .../migrations/20230516140626_capture_check_increase.up.sql | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 backend/migrations/20230516140626_capture_check_increase.down.sql create mode 100644 backend/migrations/20230516140626_capture_check_increase.up.sql diff --git a/backend/migrations/20230516140626_capture_check_increase.down.sql b/backend/migrations/20230516140626_capture_check_increase.down.sql new file mode 100644 index 0000000000..d2f607c5b8 --- /dev/null +++ b/backend/migrations/20230516140626_capture_check_increase.down.sql @@ -0,0 +1 @@ +-- Add down migration script here diff --git a/backend/migrations/20230516140626_capture_check_increase.up.sql b/backend/migrations/20230516140626_capture_check_increase.up.sql new file mode 100644 index 0000000000..0d35df0483 --- /dev/null +++ b/backend/migrations/20230516140626_capture_check_increase.up.sql @@ -0,0 +1,3 @@ +-- Add up migration script here +alter table capture DROP constraint capture_payload_check; +alter table capture add constraint caputre_payload_too_big check (length(payload::text) < 512 * 1024);