Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e75e9066
Commit
e75e9066
authored
Jun 19, 2020
by
Arturo Herrero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add project_key colum to jira_tracker_data table
This is the foundation to expand the Jira integration.
parent
7885eb99
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
1 deletion
+39
-1
changelogs/unreleased/223185-add-project-key-to-jira-tracker-data.yml
...nreleased/223185-add-project-key-to-jira-tracker-data.yml
+5
-0
db/migrate/20200619154527_add_project_key_to_jira_tracker_data.rb
...te/20200619154527_add_project_key_to_jira_tracker_data.rb
+12
-0
db/migrate/20200619154528_add_text_limit_to_jira_tracker_data_project_key.rb
...154528_add_text_limit_to_jira_tracker_data_project_key.rb
+17
-0
db/structure.sql
db/structure.sql
+5
-1
No files found.
changelogs/unreleased/223185-add-project-key-to-jira-tracker-data.yml
0 → 100644
View file @
e75e9066
---
title
:
Add project_key column to jira_tracker_data table
merge_request
:
34949
author
:
type
:
other
db/migrate/20200619154527_add_project_key_to_jira_tracker_data.rb
0 → 100644
View file @
e75e9066
# 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
db/migrate/20200619154528_add_text_limit_to_jira_tracker_data_project_key.rb
0 → 100644
View file @
e75e9066
# 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
db/structure.sql
View file @
e75e9066
...
...
@@ -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
...
...
@@ -14118,6 +14120,8 @@ COPY "schema_migrations" (version) FROM STDIN;
20200618105638
20200618134223
20200618134723
20200619154527
20200619154528
20200622103836
\
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment