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
7c3d5fb2
Commit
7c3d5fb2
authored
Nov 04, 2021
by
Tiger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant index_events_on_target_type_and_target_id
Changelog: added
parent
c8d00736
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
db/post_migrate/20211104044453_remove_redundant_events_index.rb
...t_migrate/20211104044453_remove_redundant_events_index.rb
+13
-0
db/schema_migrations/20211104044453
db/schema_migrations/20211104044453
+1
-0
db/structure.sql
db/structure.sql
+0
-2
No files found.
db/post_migrate/20211104044453_remove_redundant_events_index.rb
0 → 100644
View file @
7c3d5fb2
# frozen_string_literal: true
class
RemoveRedundantEventsIndex
<
Gitlab
::
Database
::
Migration
[
1.0
]
disable_ddl_transaction!
def
up
remove_concurrent_index_by_name
:events
,
:index_events_on_target_type_and_target_id
end
def
down
add_concurrent_index
:events
,
[
:target_type
,
:target_id
],
name: :index_events_on_target_type_and_target_id
end
end
db/schema_migrations/20211104044453
0 → 100644
View file @
7c3d5fb2
fc5a60c27ca89b122d798abe8f55a0951fece712c885555df0d2f37b565d6f94
\ No newline at end of file
db/structure.sql
View file @
7c3d5fb2
...
...
@@ -25359,8 +25359,6 @@ CREATE INDEX index_events_on_project_id_and_id ON events USING btree (project_id
CREATE INDEX index_events_on_project_id_and_id_desc_on_merged_action ON events USING btree (project_id, id DESC) WHERE (action = 7);
CREATE INDEX index_events_on_target_type_and_target_id ON events USING btree (target_type, target_id);
CREATE UNIQUE INDEX index_events_on_target_type_and_target_id_and_fingerprint ON events USING btree (target_type, target_id, fingerprint);
CREATE INDEX index_evidences_on_release_id ON evidences USING btree (release_id);
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