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
052738a1
Commit
052738a1
authored
Apr 29, 2020
by
Catalin Irimie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove index by name on ci_pipelines
parent
15985cbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
changelogs/unreleased/cat-duplicate-ci-pipelines-index-215790.yml
...gs/unreleased/cat-duplicate-ci-pipelines-index-215790.yml
+5
-0
db/migrate/20191229140154_drop_index_ci_pipelines_on_project_id.rb
...e/20191229140154_drop_index_ci_pipelines_on_project_id.rb
+5
-2
No files found.
changelogs/unreleased/cat-duplicate-ci-pipelines-index-215790.yml
0 → 100644
View file @
052738a1
---
title
:
Fix duplicate index removal on ci_pipelines.project_id
merge_request
:
31043
author
:
type
:
fixed
db/migrate/20191229140154_drop_index_ci_pipelines_on_project_id.rb
View file @
052738a1
...
...
@@ -8,10 +8,13 @@ class DropIndexCiPipelinesOnProjectId < ActiveRecord::Migration[5.2]
disable_ddl_transaction!
def
up
remove_concurrent_index
:ci_pipelines
,
:project_id
remove_concurrent_index_by_name
:ci_pipelines
,
'index_ci_pipelines_on_project_id'
# extra (duplicate) index that already existed on some installs
remove_concurrent_index_by_name
:ci_pipelines
,
'ci_pipelines_project_id_idx'
end
def
down
add_concurrent_index
:ci_pipelines
,
:project_id
add_concurrent_index
:ci_pipelines
,
:project_id
,
name:
'index_ci_pipelines_on_project_id'
end
end
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