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);