Commit bc6a3129 authored by Jonathan Schafer's avatar Jonathan Schafer Committed by Steve Abrams

Add body to finding evidence requests

parent b38c7efe
---
title: Add body to finding evidence requests
merge_request: 61408
author:
type: changed
# frozen_string_literal: true
class AddBodyToFindingsEvidencesRequest < ActiveRecord::Migration[6.0]
# rubocop:disable Migration/AddLimitToTextColumns
# limit is added in 20210510191552_add_limit_to_findings_evidences_request_body.rb
def change
add_column :vulnerability_finding_evidence_requests, :body, :text
end
# rubocop:enable Migration/AddLimitToTextColumns
end
# frozen_string_literal: true
class AddLimitToFindingsEvidencesRequestBody < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_text_limit :vulnerability_finding_evidence_requests, :body, 2048
end
def down
remove_text_limit :vulnerability_finding_evidence_requests, :body
end
end
949038f9f66788e3289afbf210617f7947762e4bbab4c7389164cbd775302642
\ No newline at end of file
e59505ee2a3ef04c1af8a426f7ebdb83874c926cf7d7f98b56e0af8cd38988f5
\ No newline at end of file
......@@ -18809,6 +18809,8 @@ CREATE TABLE vulnerability_finding_evidence_requests (
vulnerability_finding_evidence_id bigint NOT NULL,
method text,
url text,
body text,
CONSTRAINT check_7e37f2d01a CHECK ((char_length(body) <= 2048)),
CONSTRAINT check_8152fbb236 CHECK ((char_length(url) <= 2048)),
CONSTRAINT check_d9d11300f4 CHECK ((char_length(method) <= 32))
);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment