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
dc77e8e1
Commit
dc77e8e1
authored
Feb 01, 2022
by
Tiger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant index on clusters_kubernetes_namespaces
Changelog: other
parent
609fdc4f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
db/post_migrate/20220201034731_remove_index_clusters_kubernetes_namespaces_on_cluster_id.rb
...ove_index_clusters_kubernetes_namespaces_on_cluster_id.rb
+15
-0
db/schema_migrations/20220201034731
db/schema_migrations/20220201034731
+1
-0
db/structure.sql
db/structure.sql
+0
-2
No files found.
db/post_migrate/20220201034731_remove_index_clusters_kubernetes_namespaces_on_cluster_id.rb
0 → 100644
View file @
dc77e8e1
# frozen_string_literal: true
class
RemoveIndexClustersKubernetesNamespacesOnClusterId
<
Gitlab
::
Database
::
Migration
[
1.0
]
INDEX
=
'index_clusters_kubernetes_namespaces_on_cluster_id'
disable_ddl_transaction!
def
up
remove_concurrent_index_by_name
:clusters_kubernetes_namespaces
,
INDEX
end
def
down
add_concurrent_index
:clusters_kubernetes_namespaces
,
:cluster_id
,
name:
INDEX
end
end
db/schema_migrations/20220201034731
0 → 100644
View file @
dc77e8e1
873ff811d4f70c012785297ee8c07eb496994af69d5ae4b266e8f675c88daca4
\ No newline at end of file
db/structure.sql
View file @
dc77e8e1
...
...
@@ -25989,8 +25989,6 @@ CREATE INDEX index_clusters_integration_elasticstack_enabled ON clusters_integra
CREATE INDEX index_clusters_integration_prometheus_enabled ON clusters_integration_prometheus USING btree (enabled, created_at, cluster_id);
CREATE INDEX index_clusters_kubernetes_namespaces_on_cluster_id ON clusters_kubernetes_namespaces USING btree (cluster_id);
CREATE INDEX index_clusters_kubernetes_namespaces_on_cluster_project_id ON clusters_kubernetes_namespaces USING btree (cluster_project_id);
CREATE INDEX index_clusters_kubernetes_namespaces_on_environment_id ON clusters_kubernetes_namespaces USING btree (environment_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