Commit 946dbc62 authored by Tiger Watson's avatar Tiger Watson

Merge branch '267489-finding-evidence-details-response-body' into 'master'

Add body to finding evidence responses

See merge request gitlab-org/gitlab!61631
parents 74e6b572 04af7189
---
title: Add body to finding evidence responses
merge_request: 61631
author:
type: changed
# frozen_string_literal: true
class AddBodyToFindingsEvidencesResponse < ActiveRecord::Migration[6.0]
# rubocop:disable Migration/AddLimitToTextColumns
# limit is added in 20210512183310_add_limit_to_findings_evidences_response_body.rb
def change
add_column :vulnerability_finding_evidence_responses, :body, :text
end
# rubocop:enable Migration/AddLimitToTextColumns
end
# frozen_string_literal: true
class AddLimitToFindingsEvidencesResponseBody < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_text_limit :vulnerability_finding_evidence_responses, :body, 2048
end
def down
remove_text_limit :vulnerability_finding_evidence_responses, :body
end
end
490dd9a1fe59fb1454f938763f9b8bce7a0567569ad5f7b8e29b196551d869e1
\ No newline at end of file
d1e389755e4f5ed0075b07c5680eee5ae3557550071d14360ad3030e4c2d3ac1
\ No newline at end of file
......@@ -18861,7 +18861,9 @@ CREATE TABLE vulnerability_finding_evidence_responses (
vulnerability_finding_evidence_id bigint NOT NULL,
status_code integer,
reason_phrase text,
CONSTRAINT check_58b124ab48 CHECK ((char_length(reason_phrase) <= 2048))
body text,
CONSTRAINT check_58b124ab48 CHECK ((char_length(reason_phrase) <= 2048)),
CONSTRAINT check_76bac0c32b CHECK ((char_length(body) <= 2048))
);
CREATE SEQUENCE vulnerability_finding_evidence_responses_id_seq
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