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
d150e188
Commit
d150e188
authored
Apr 19, 2021
by
Steve Abrams
Committed by
Adam Hegyi
Apr 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant index on epics
parent
c62e39b9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
2 deletions
+23
-2
changelogs/unreleased/remove_epics_index.yml
changelogs/unreleased/remove_epics_index.yml
+5
-0
db/migrate/20210415144538_remove_index_epics_on_group_id_from_epics.rb
...210415144538_remove_index_epics_on_group_id_from_epics.rb
+17
-0
db/schema_migrations/20210415144538
db/schema_migrations/20210415144538
+1
-0
db/structure.sql
db/structure.sql
+0
-2
No files found.
changelogs/unreleased/remove_epics_index.yml
0 → 100644
View file @
d150e188
---
title
:
Remove redundant index from epics
merge_request
:
59494
author
:
type
:
other
db/migrate/20210415144538_remove_index_epics_on_group_id_from_epics.rb
0 → 100644
View file @
d150e188
# frozen_string_literal: true
class
RemoveIndexEpicsOnGroupIdFromEpics
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
INDEX_NAME
=
'index_epics_on_group_id'
disable_ddl_transaction!
def
up
remove_concurrent_index_by_name
:epics
,
INDEX_NAME
end
def
down
add_concurrent_index
:epics
,
:group_id
,
name:
INDEX_NAME
end
end
db/schema_migrations/20210415144538
0 → 100644
View file @
d150e188
d237690af576fb5a85d984416dcca1936a140a10a9b6c968d3ff57419568fb8f
\ No newline at end of file
db/structure.sql
View file @
d150e188
...
...
@@ -22603,8 +22603,6 @@ CREATE INDEX index_epics_on_due_date_sourcing_milestone_id ON epics USING btree
CREATE INDEX index_epics_on_end_date ON epics USING btree (end_date);
CREATE INDEX index_epics_on_group_id ON epics USING btree (group_id);
CREATE UNIQUE INDEX index_epics_on_group_id_and_external_key ON epics USING btree (group_id, external_key) WHERE (external_key IS NOT NULL);
CREATE UNIQUE INDEX index_epics_on_group_id_and_iid ON epics USING btree (group_id, iid);
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