Commit e75e9066 authored by Arturo Herrero's avatar Arturo Herrero

Add project_key colum to jira_tracker_data table

This is the foundation to expand the Jira integration.
parent 7885eb99
---
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 ( ...@@ -3655,7 +3655,9 @@ CREATE TABLE public.jira_tracker_data (
encrypted_username_iv character varying, encrypted_username_iv character varying,
encrypted_password character varying, encrypted_password character varying,
encrypted_password_iv 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 CREATE SEQUENCE public.jira_tracker_data_id_seq
...@@ -14118,6 +14120,8 @@ COPY "schema_migrations" (version) FROM STDIN; ...@@ -14118,6 +14120,8 @@ COPY "schema_migrations" (version) FROM STDIN;
20200618105638 20200618105638
20200618134223 20200618134223
20200618134723 20200618134723
20200619154527
20200619154528
20200622103836 20200622103836
\. \.
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