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
6fb7fe10
Commit
6fb7fe10
authored
Sep 22, 2020
by
Tiger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove duplicate index on cluster_agents
parent
a51c9471
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
2 deletions
+24
-2
changelogs/unreleased/244484-remove-redundant-cluster-agents-index.yml
...released/244484-remove-redundant-cluster-agents-index.yml
+5
-0
db/migrate/20200921203231_remove_duplicate_cluster_agents_index.rb
...e/20200921203231_remove_duplicate_cluster_agents_index.rb
+18
-0
db/schema_migrations/20200921203231
db/schema_migrations/20200921203231
+1
-0
db/structure.sql
db/structure.sql
+0
-2
No files found.
changelogs/unreleased/244484-remove-redundant-cluster-agents-index.yml
0 → 100644
View file @
6fb7fe10
---
title
:
Remove duplicate index on cluster_agents
merge_request
:
42902
author
:
type
:
other
db/migrate/20200921203231_remove_duplicate_cluster_agents_index.rb
0 → 100644
View file @
6fb7fe10
# frozen_string_literal: true
class
RemoveDuplicateClusterAgentsIndex
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
INDEX
=
'index_cluster_agents_on_project_id'
disable_ddl_transaction!
def
up
remove_concurrent_index_by_name
:cluster_agents
,
INDEX
end
def
down
add_concurrent_index
:cluster_agents
,
:project_id
,
name:
INDEX
end
end
db/schema_migrations/20200921203231
0 → 100644
View file @
6fb7fe10
7f62ce5117a16213bad6537dfeae2af4016262c533f8fa6b7a19572077bcf8d7
\ No newline at end of file
db/structure.sql
View file @
6fb7fe10
...
...
@@ -19789,8 +19789,6 @@ CREATE INDEX index_cluster_agent_tokens_on_agent_id ON cluster_agent_tokens USIN
CREATE
UNIQUE
INDEX
index_cluster_agent_tokens_on_token_encrypted
ON
cluster_agent_tokens
USING
btree
(
token_encrypted
);
CREATE
INDEX
index_cluster_agents_on_project_id
ON
cluster_agents
USING
btree
(
project_id
);
CREATE
UNIQUE
INDEX
index_cluster_agents_on_project_id_and_name
ON
cluster_agents
USING
btree
(
project_id
,
name
);
CREATE
UNIQUE
INDEX
index_cluster_groups_on_cluster_id_and_group_id
ON
cluster_groups
USING
btree
(
cluster_id
,
group_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