Commit 591d965f authored by Arturo Herrero's avatar Arturo Herrero Committed by Mayra Cabrera

Add issues_enabled column to jira_tracker_data table

This will support the checkbox to enable/disable the Jira issues page.
parent d8f7f284
...@@ -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