Commit c81d9adc authored by Andy Soiron's avatar Andy Soiron Committed by Tiger Watson

Add instance_url to jira_connect_installations

parent b0ec3d8a
---
title: Add instance_url column to the jira_connect_installations table
merge_request: 59148
author:
type: added
# frozen_string_literal: true
class AddInstanceUrlToJiraConnectInstallations < ActiveRecord::Migration[6.0]
DOWNTIME = false
# rubocop:disable Migration/AddLimitToTextColumns
# limit is added in db/migrate/20210216163811_add_text_limit_to_jira_connect_installations_instance_url.rb
def up
add_column :jira_connect_installations, :instance_url, :text
end
# rubocop:enable Migration/AddLimitToTextColumns
def down
remove_column :jira_connect_installations, :instance_url
end
end
# frozen_string_literal: true
class AddTextLimitToJiraConnectInstallationsInstanceUrl < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_text_limit :jira_connect_installations, :instance_url, 255
end
def down
remove_text_limit :jira_connect_installations, :instance_url
end
end
fa3287ed845c2fa24c3c65825362b4393433e273a3e94ed454ef5cc3b373d8a3
\ No newline at end of file
cb02cb38d6f050ac49ac2c963307da4543590cc5ebd50fbc2225c519f1c96849
\ No newline at end of file
......@@ -13857,7 +13857,9 @@ CREATE TABLE jira_connect_installations (
client_key character varying,
encrypted_shared_secret character varying,
encrypted_shared_secret_iv character varying,
base_url character varying
base_url character varying,
instance_url text,
CONSTRAINT check_4c6abed669 CHECK ((char_length(instance_url) <= 255))
);
CREATE SEQUENCE jira_connect_installations_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