Commit edcc2bcd authored by Toon Claes's avatar Toon Claes

Merge branch '223185-add-project-key-to-jira-tracker-data' into 'master'

Add project_key column to jira_tracker_data table

See merge request gitlab-org/gitlab!34949
parents 4519ec75 e75e9066
---
title: Add project_key column to jira_tracker_data table
merge_request: 34949
author:
type: other
# frozen_string_literal: true
class AddProjectKeyToJiraTrackerData < ActiveRecord::Migration[6.0]
DOWNTIME = false
# rubocop:disable Migration/AddLimitToTextColumns
# limit is added in 20200619154528_add_text_limit_to_jira_tracker_data_project_key
def change
add_column :jira_tracker_data, :project_key, :text
end
# rubocop:enable Migration/AddLimitToTextColumns
end
# frozen_string_literal: true
class AddTextLimitToJiraTrackerDataProjectKey < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_text_limit :jira_tracker_data, :project_key, 255
end
def down
remove_text_limit :jira_tracker_data, :project_key
end
end
......@@ -3655,7 +3655,9 @@ CREATE TABLE public.jira_tracker_data (
encrypted_username_iv character varying,
encrypted_password character varying,
encrypted_password_iv character varying,
jira_issue_transition_id character varying
jira_issue_transition_id character varying,
project_key text,
CONSTRAINT check_214cf6a48b CHECK ((char_length(project_key) <= 255))
);
CREATE SEQUENCE public.jira_tracker_data_id_seq
......@@ -14113,6 +14115,8 @@ COPY "schema_migrations" (version) FROM STDIN;
20200618105638
20200618134223
20200618134723
20200619154527
20200619154528
20200622103836
20200622235737
20200623000148
......
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