Add missing cluster_id on knative
This commit is contained in:
parent
eaf7fd1bef
commit
c8dc8c3887
2 changed files with 3 additions and 0 deletions
|
@ -16,6 +16,7 @@ class AddMissingIndexesForForeignKeys < ActiveRecord::Migration
|
|||
add_concurrent_index(:clusters_applications_ingress, :cluster_id, unique: true)
|
||||
add_concurrent_index(:clusters_applications_jupyter, :cluster_id, unique: true)
|
||||
add_concurrent_index(:clusters_applications_jupyter, :oauth_application_id)
|
||||
add_concurrent_index(:clusters_applications_knative, :cluster_id, unique: true)
|
||||
add_concurrent_index(:clusters_applications_prometheus, :cluster_id, unique: true)
|
||||
add_concurrent_index(:fork_network_members, :forked_from_project_id)
|
||||
add_concurrent_index(:internal_ids, :namespace_id)
|
||||
|
@ -45,6 +46,7 @@ class AddMissingIndexesForForeignKeys < ActiveRecord::Migration
|
|||
remove_concurrent_index(:clusters_applications_ingress, :cluster_id, unique: true)
|
||||
remove_concurrent_index(:clusters_applications_jupyter, :cluster_id, unique: true)
|
||||
remove_concurrent_index(:clusters_applications_jupyter, :oauth_application_id)
|
||||
remove_concurrent_index(:clusters_applications_knative, :cluster_id, unique: true)
|
||||
remove_concurrent_index(:clusters_applications_prometheus, :cluster_id, unique: true)
|
||||
remove_concurrent_index(:fork_network_members, :forked_from_project_id)
|
||||
remove_concurrent_index(:internal_ids, :namespace_id)
|
||||
|
|
|
@ -687,6 +687,7 @@ ActiveRecord::Schema.define(version: 20181107054254) do
|
|||
t.string "version", null: false
|
||||
t.string "hostname"
|
||||
t.text "status_reason"
|
||||
t.index ["cluster_id"], name: "index_clusters_applications_knative_on_cluster_id", unique: true, using: :btree
|
||||
end
|
||||
|
||||
create_table "clusters_applications_prometheus", force: :cascade do |t|
|
||||
|
|
Loading…
Reference in a new issue