Commit b6cc01f2 authored by Andreas Brandl's avatar Andreas Brandl

Merge branch 'remove-redundant-k8s-namespaces-index' into 'master'

Remove redundant index on clusters_kubernetes_namespaces

See merge request gitlab-org/gitlab!79597
parents 6d1b2d9e 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
873ff811d4f70c012785297ee8c07eb496994af69d5ae4b266e8f675c88daca4
\ No newline at end of file
......@@ -25991,8 +25991,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);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment