Commit ff917971 authored by Jonathan Schafer's avatar Jonathan Schafer

Add body to finding evidence responses

parent 2fb5ef0c
---
title: Add body to finding evidence responses
merge_request: 61631
author:
type: changed
# frozen_string_literal: true
class AddBodyToFindingsEvidencesResponse < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_column :vulnerability_finding_evidence_responses, :body, :text
add_text_limit :vulnerability_finding_evidence_responses, :body, 2048
end
def down
remove_column :vulnerability_finding_evidence_responses, :body
end
end
490dd9a1fe59fb1454f938763f9b8bce7a0567569ad5f7b8e29b196551d869e1
\ No newline at end of file
...@@ -18810,7 +18810,9 @@ CREATE TABLE vulnerability_finding_evidence_responses ( ...@@ -18810,7 +18810,9 @@ CREATE TABLE vulnerability_finding_evidence_responses (
vulnerability_finding_evidence_id bigint NOT NULL, vulnerability_finding_evidence_id bigint NOT NULL,
status_code integer, status_code integer,
reason_phrase text, 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 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