Commit 0d2fd48e authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch '225706-add-issues-enabled-to-jira-tracker-data' into 'master'

Add issues_enabled column to jira_tracker_data table

See merge request gitlab-org/gitlab!35987
parents 5b764c5d 591d965f
...@@ -23,7 +23,7 @@ class JiraService < IssueTrackerService ...@@ -23,7 +23,7 @@ class JiraService < IssueTrackerService
# TODO: we can probably just delegate as part of # TODO: we can probably just delegate as part of
# https://gitlab.com/gitlab-org/gitlab/issues/29404 # https://gitlab.com/gitlab-org/gitlab/issues/29404
data_field :username, :password, :url, :api_url, :jira_issue_transition_id, :project_key data_field :username, :password, :url, :api_url, :jira_issue_transition_id, :project_key, :issues_enabled
before_update :reset_password before_update :reset_password
......
---
title: Add issues_enabled column to jira_tracker_data table
merge_request: 35987
author:
type: other
# frozen_string_literal: true
class AddIssuesEnabledToJiraTrackerData < ActiveRecord::Migration[6.0]
DOWNTIME = false
def change
add_column :jira_tracker_data, :issues_enabled, :boolean, default: false, null: false
end
end
...@@ -12404,6 +12404,7 @@ CREATE TABLE public.jira_tracker_data ( ...@@ -12404,6 +12404,7 @@ CREATE TABLE public.jira_tracker_data (
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, project_key text,
issues_enabled boolean DEFAULT false NOT NULL,
CONSTRAINT check_214cf6a48b CHECK ((char_length(project_key) <= 255)) CONSTRAINT check_214cf6a48b CHECK ((char_length(project_key) <= 255))
); );
...@@ -23539,5 +23540,6 @@ COPY "schema_migrations" (version) FROM STDIN; ...@@ -23539,5 +23540,6 @@ COPY "schema_migrations" (version) FROM STDIN;
20200626060151 20200626060151
20200626130220 20200626130220
20200702123805 20200702123805
20200703154822
\. \.
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